Hi Experts,
Looking for the best approach to fetch and update the entities in bulk. Please suggest best approach to deal with this requirement, I am fetching List of Guids (~80K+) from an external database and want to update an entity in CRM by increment the counter integer field and setting one option set field. So far as per my understanding following are the possible approaches :
1. Using Early-bound classes - Querying the context in batches by passing 5K entity id at once and then looping through the entitylist and update the entity context with-in foreach loop.
2. Using QueryExpression - Passing the Guid ids in batch/page of 5k in query expression using ConditionOperator.In operator, retriveMultipleRespone and then loop through the entities and preparing the updaterequest collection and call executeMultiple again repeat the same for remaining pages.
Please suggest which approach will better or any-other approach to handle it more efficient way. Can we use multi-threading here ?
*This post is locked for comments
I have the same question (0)