You need to sign in to do that
Don't have an account?
EtienneCoutant
Governor Limits on Triggers
Hi,
From what I have understood about Governors, the limit is 20 Queries and 20 DML Statements for a trigger.
However, I am really wondering if this is for ONE trigger, or for all the triggers executed at the same time.
I have 2 triggers on 2 different objects, and each of them is executing 15 queries. When ran separately, it works perfectly, but it happens that those 2 triggers are executed at the same time. In that case I get an error 'too many queries: 21'. My guess is that the system is counting 15 + 15 = 30 queries, which is obviously over the limits...
Does someone know the answer?
thanks a lot!!!
From what I have understood about Governors, the limit is 20 Queries and 20 DML Statements for a trigger.
However, I am really wondering if this is for ONE trigger, or for all the triggers executed at the same time.
I have 2 triggers on 2 different objects, and each of them is executing 15 queries. When ran separately, it works perfectly, but it happens that those 2 triggers are executed at the same time. In that case I get an error 'too many queries: 21'. My guess is that the system is counting 15 + 15 = 30 queries, which is obviously over the limits...
Does someone know the answer?
thanks a lot!!!
http://sfdc.arrowpointe.com/2008/09/13/bulkifying-a-trigger-an-example/
Thanks a lot for your answer. I am really curious to know more about those requests. Do you know more about that? How is the request built? How 2 triggers end up in the same request?
Best,
Etienne