Skip to content

Instantly share code, notes, and snippets.

@rahulmalhotra
Last active May 15, 2021 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulmalhotra/f520d28af6f2573eeef74fa59ff92d48 to your computer and use it in GitHub Desktop.
Save rahulmalhotra/f520d28af6f2573eeef74fa59ff92d48 to your computer and use it in GitHub Desktop.
Updated Start method of batch class used in SFDC Stop UNABLE_TO_LOCK_ROW blog
public Database.QueryLocator start(Database.BatchableContext bc) {
return Database.getQueryLocator('SELECT Id, Count__c FROM Product_Part__c ORDER BY Product__c');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment