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
sai krishna 267sai krishna 267 

In batchApex i have 250000 records how it will process in batchapex. can any one answer it deeply?

in batch min-200 max-2000
there is a limitation in batchapex 5 jobs execute at a time
how will execute queues how it will maintain
 
v varaprasadv varaprasad
Hi Sai,

Step 1 : 

1. in batch min-200 max-2000 
Ex: you are using 2000 in the database.execute method executes 125 times (250000/2000).

2. there is a limitation in batch apex 5 jobs execute at a time
It means 125 times execute method will execute.It is a single batch job only.Not 125 jobs.

For more info : 
Plese check once below link :

https://trailhead.salesforce.com/en/modules/asynchronous_apex/units/async_apex_batch


I hop it helps you.


Thanks
Varaprasad




 
sai krishna 267sai krishna 267
@thanku varaprasad
v varaprasadv varaprasad
Hi Sai,

Above information helps you, Please mark it as the best answer.
If you have any other assistance let me know.


Thanks
Varaprasad