function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
force noviceforce novice 

Batch Apex

The batch apex limit is 50 million records..if i want to retrieve more than 50 million records what i have to do?
You'd have to have multiple batch jobs, each processing a 50 million record chunk of the data.  Each batch job would have to scope the query somehow so that it returned 50 million or less records - if it returns more, then the platform will fail the batch.