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
ckempckemp 

Triggers and "Too many SOQL queries" errors

I have a handful of triggers that execute every time an Opportunity is saved.  However, when I save an Opportunity, I'm now getting a "System.Exception: Too many SOQL queries: 21" error.  When I check the debug log, it shows that no single trigger is running more than 20 SOQL statements (each are running about 3-4, but there are 6 or 7 triggers).  I thought that the 20 SOQL statement limit was per trigger (as indicated in the manual) and this totally makes sense.  It does not make sense that it would be a cumulative total over all triggers. 

Is there any way around this silly limit?