[SalesForce] Apex batch – limit on the number of chunks

According to Salesforce documentation for Apex Batch jobs, it is possible to query 50 million records by using Database.QueryLocator in the start method. Is there any limitation on the number of chunks of data? In other words, if the limit of rows is 50 million, Can I divide the data to be processed to 50 million chunks?

Best Answer

The chunk size depends on the API version. In API version 20.0 and earlier, the chunk size is 100 records. In API version 21.0 and later, the chunk size is 200 records.

Related Topic