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
Aditya JamwalAditya Jamwal 

How to increase batch limit from 200 records to 1000 records

I have written a batchclass to execute 600k records.It taking so much time.

Is there any way to increase batch limit from 200 to 1000 records?

 

 

Looking for your valuable replies

sfdcfoxsfdcfox

It would still take the same (approximate) amount of time, regardless, but more directly, no, there is not a way to alter the size of a batch.

Rohit Kumar VermaRohit Kumar Verma

Nop Dude,

 

We do not have any mechanism to increase the Batch Size above 200.

I future we may expect this from Salesforce.

 

 

SameerHJ77SameerHJ77

Now we can set batch limit to 2000.

database.executebatch(new BatchInstance() , 2000);

sfdcfoxsfdcfox

That much is true, but it won't matter if they are performing DML operations, because those operations will still be batched in groups of 200 each.