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
Amit M 3Amit M 3 

Trigger records processing

I know that there can be 200 maximum records at a time in trigger context. And if we are processing more than 200 records (either through data loader or through DML operation) trigger breaks those records in to chunk of 200 records and then processes it. What I want to know, if this whole processing of more than 200 records in trigger is counted as SINGLE TRANSACTION or more than one TRANSACTION?
bilal malikbilal malik
Basically in one transaction, there will become batches of each 200 records , but transaction will be counted as 1.
Hi Amit M 3,
At a time 200 records Trigger executes and each batch consists of 200 records. So if 400 records cause a trigger to fire, the trigger fires twice, once for each 200 records.

Please mark this as solved if the information helps.