Sunday, September 11, 2016

Is there a way to Print the Number of SOQL Queries in Debug During Runtime?

System.debug('Total Number of SOQL Queries allowed in this apex code context: ' +  Limits.getLimitQueries());



System.debug('Total Number of SOQL Queries fired in this apex code context: ' +  Limits.getQueries());

No comments:

Post a Comment