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
CritterCritter 

Question on query limitiations

I have triggers attached to several objects for our group.

 

The creation of cloning of a top level object trickles down and clones everything associated with /that/ object. Easy enough.

 

but in that cloning of child objects other triggers are fired to perform this and that.. It seems I am hitting my sql query cap.

 

My question : Does the 100 query cap run /per/ trigger or is it cummulative of all processes run from the initial trigger?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SLockardSLockard

It is cumulative of all the triggers/classes that run from the inital action on the object. Make sure to bulkify all of your triggers, and if different triggers query the same things for the same object, merge them into one.

All Answers

SLockardSLockard

It is cumulative of all the triggers/classes that run from the inital action on the object. Make sure to bulkify all of your triggers, and if different triggers query the same things for the same object, merge them into one.

This was selected as the best answer
CritterCritter

gotcha.  thanks