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
krupananda reddykrupananda reddy 

What is SerialBatchApexRangeChunkHandler, any documentation ?

When a batch job is scheduled to run, Its invocating several "SerialBatchApexRangeChunkHandler" other batch jobs (in my case its 64). Do we have any documentaion available on the same or whats happening internally on the platform ?
NagendraNagendra (Salesforce Developers) 
Hi Reddy,

If you process 1000 records these will be processed in 5 chunks of 200 records. For each chunk, you will see a SerialBatchApexRangeChunkHandler (it corresponds to the execute method in the batch).

Please let us know if this helps.

Best Regards,
Nagendra.
BennieBennie
@Nagendra Don't put random unaccepted answers from StackExchange
Paul Swarnapandian 17Paul Swarnapandian 17
@Bennie
Nagendra's answer is correct. Every chunk the SerialBatchApexRangChunkHandler is done. By default the size is 200, however, you can also override the batch size using Database.executeBatch(Batchable class, batch size)