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
SureshSuresh 

batch size

Hi,

Can anyone tell me the path to see the batch size.can i change taht and up to what limit.


Regards,
Suresh.
sandeep sankhlasandeep sankhla
Hi Suresh,

You can use the Database.executeBatch(sObject className, Integer scopeSize) method to set the batch size.

Be sure the scopeSize should less than 200.

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.

Thanks,
Sandeep
Salesforce Certified Developer 
Sagar PareekSagar Pareek
Salesforce breaks the records returned by the Database.QueryLocator into batches of 200, and then passes each batch to the executBatch method. You cannot control the batch size.