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
vishreyvishrey 

Question Regarding Batch Apex

Hi

I want to understand batch apex. Can any one explain me what is Batch exactly?

 

My scenario is i have 440k accounts and 4.5M orders. I am planning to write batch process to track the orders ordered by each account in past 3 years and update the field on accounts. In 2 of the accounts i have more than 10000 orders. When i query the orders i can query upto 50000  rite? I am bit confused with batch process.

 

Thanks for the help 

Sonu Sharma.ax1610Sonu Sharma.ax1610

Hi,

 

Batch is salesforce internal way of processing the records and you don't have to worry about the number of records. Batch will automatically handle.

 

Regads

-S