Updating 4 million records in SQL server using list of record-ids as input
问题 During a migration project, I'm faced with an update of 4 millions records in our SQL Server. The update is very simple ; a boolean field needs to be set to true/1 and the input I have is a list of all the id's for which this field must be filled.(one id per line) I'm not exactly an expert when it comes to sql tasks of this size, so I started out trying 1 UPDATE statement containing a " WHERE xxx IN ( {list of ids, separated by comma} ) ". First, I tried this with a million records. On a