You need to sign in to do that
Don't have an account?

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.