+ 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?
bob_buzzardbob_buzzard
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.