You need to sign in to do that
Don't have an account?
Aidel Bruck
tracking the soql queries being called
I am working on optimizing code that I didn't originally write.
Each object has multiple triggers, and each trigger has soql queries.
There is a trigger that is hitting the limit for soql queries. Is there an easy way to pinpoint where these queries are?
Each object has multiple triggers, and each trigger has soql queries.
There is a trigger that is hitting the limit for soql queries. Is there an easy way to pinpoint where these queries are?
Add debug log for your user as described here:
https://help.salesforce.com/articleView?id=code_add_users_debug_log.htm&type=5
Set Database debug level to INFO in order to display all the queries. Please note that usually there is no single query that is to be blamed from hitting the limits. Usually it is the overall number of queries which is to blame. Try to reduce running the queries on same objects more than once and see if there is any impact on that.
Regards,
mirki
In the bottom of page it will give you result like this