Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How is record locking affected with dealing with the large batch processes?

0
Posted

How is record locking affected with dealing with the large batch processes?

0

The records are locked during the execution of a queryLocator (such as in the start method) after that method has been executed, all the records are then unlocked. If you want to lock the records during execute, you have to re-query for the objects and use the “FOR UPDATE” keyword in your query.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123