How to limit number of records to be processed per transaction in Batch Apex?
The Database.executeBatch method takes an optional parameter scope. This parameter specifies the number of records that should be passed into the execute method. Syntax: Database.executeBatch(instance of batch class,scope); Sample: AccountUpdate ....