Azure Data Factory Upsert Azure SQL Database Sink
I am using Copy activity to upsert data into my desitnation table in Azure SQL Database based on primary keys.
ADF creates Interim tables in the specified schema which is dbo in this case. It also adds a column named BatchIdentifier to the interim table. Data is first loaded to the interim table followed by an update /insert into target table.
How does ADF determine the batch size when it does the insert and update . Is there a way to control the batchidentifier parameters in the insert and update query? I have table which has about 30 million records and it seems to be updating in a batch of 10 million records each (BatchIdentifier >= 1 and BatchIdentifier < 10000001) ,(BatchIdentifier >= 10000001 and BatchIdentifier < 20000001) and so on.
BatchIdentifier >= @start
and BatchIdentifier < @end
Read more here: Source link
