Sql4Cds icon indicating copy to clipboard operation
Sql4Cds copied to clipboard

50.000 limit on update query with join

Open chironh opened this issue 1 month ago • 2 comments

I'm experiencing a very strange behaviour. Maybe it's related to one of the latest updates (I'm using version 9.0.1) because I haven't noticed this before (and I've worked with big datasets in the past).

This query limits to 50.000 records (which is a pretty specific number/cap if you ask me):

update account
set account.accountnumber = msdyn_customerasset.msdyn_name
from account
inner join msdyn_customerasset ON account.accountid = msdyn_customerasset.msdyn_account

whereas the following query has no limit:

update account
set account.accountnumber = null
from account
inner join msdyn_customerasset ON account.accountid = msdyn_customerasset.msdyn_account

To be clear, the dataset should update 57xxx records, which is the result of this query:

select account.accountnumber, msdyn_customerasset.msdyn_name
from account
inner join msdyn_customerasset ON account.accountid = msdyn_customerasset.msdyn_account

chironh avatar May 13 '24 10:05 chironh