Why the Salesforce Governor Limits cheatsheet show the following?
Total number of records retrieved by Database.getQueryLocator —> 10000
What does this mean?
The limits are reset for every execute()
, not for every start()
execution, so the records are retrieved in a single start()
call and I'm able to retrieve much more than 10k records by a getQueryLocator
.
What does the trick?
Best Answer
According to the documentation, in a batch start() method the governor limit is bypassed. The governor limit of 10,000 in the limits cheatsheet still applies in execute() and finish() and other methods.