+ Start a Discussion

Question Regarding Batch Apex


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



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.