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