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
Kamal BelayacKamal Belayac 

Batch jobs

Hello guys , hope you're doing well . I'd just wanna know briefly how the batch jobs are running , as far as i inderstood , when calling a trigger , which is doing some record quering for exemple , it will only work on the records which are under the limits , and then calling the batch apex and loading into it the data left will divide the data into batches and will process on it later till it consumes all of it . I don't knowif i'm right i just wanna know if that's the right explaination . 
Best Answer chosen by Kamal Belayac
Andy BoettcherAndy Boettcher
"Batch Apex" is an execution context that allows you to run Apex classes/methods against large data volumes in a manner where you specify the number of records per execution.

Official documentation:  https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm

I also write a blog post about this a few years back that helps describe Batch (and Schedulable) and some more context:  https://techman97.wordpress.com/2012/02/08/batchable-and-schedulable-apex/

All Answers

Andy BoettcherAndy Boettcher
"Batch Apex" is an execution context that allows you to run Apex classes/methods against large data volumes in a manner where you specify the number of records per execution.

Official documentation:  https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm

I also write a blog post about this a few years back that helps describe Batch (and Schedulable) and some more context:  https://techman97.wordpress.com/2012/02/08/batchable-and-schedulable-apex/
This was selected as the best answer
Kamal BelayacKamal Belayac
Hi BOETTCHER , 

I've really appreciated reading your post . Thank you for replying .

Best regards ,