You need to sign in to do that
Don't have an account?
What does mean by trigger can process 200 records at a time
This might sound silly but I need to know the exact context of this. When we say "When a trigger fires it can process anywhere from 1 to 200 records " Then what does processing means here?
For example I have a trigger which fires on Object A (before insert ) and it inserts 200 records of Object B. So would this insert DML operation also be called record processing?
The reason there is focus on this is that you can't rely on executing SOQL or DML for each record, as you will breach governor limits. Instead you have to use lists/maps to retrieve/update the associated information for all your records in one go, aka bulkifying.
All Answers
The reason there is focus on this is that you can't rely on executing SOQL or DML for each record, as you will breach governor limits. Instead you have to use lists/maps to retrieve/update the associated information for all your records in one go, aka bulkifying.
@bob_buzzard Thanks for the reply friend. Indeed I understand these governor limit limitaions. So Processing means I can say, anything like validation, updation etc that my trigger code would do on the records.
Now from the example that I have given, would inserting the 200 sObjects records of Object type B (see in the question) would also be called processing?
ofcourse, you are right.Inserting the 200 records of object type B will also counted.Not only insertion it can be any DML operation that will be process by trigger will process 200 records at a time.
Thanks
Rishav