I am using a console application
What console application?
I will process these in smaller batches for now
I always recommend doing bulk updates in batches.
I would also recommend using the CMSActionContext
(as detailed here) to limit what side-effect operations occur when you are programmatically updating many documents.
Often we my team has to do bulk updates like this, we create an .aspx
page in the CMS\CMSPages
folder (checking for a specific role on PageLoad
) and then build out a simple UI that allows us to specify the number of items to update per update batch, and the minimum DocumentId / NodeId for starting the next batch.
When we query for documents that are being updated, we ensure only documents with an Id >= the Id submitted with the form are processed, limiting the result set to the batch size.
When the batch completes, we display the results on the page, including the Max Id of all the pages processed, so we know where to pick up for the next batch.