Governor Limits in Salesforce

By | December 15, 2019

Hi, here we have shown governor limits in salesforce.

Governor Limits

  1. Total number of SOQL queries issued synchronous limit is 100 and Asynchronous Limit 200.
  2. Total number of records retrieved by SOQL queries is 50,000.
  3. Total number of records retrieved by Database.getQueryLocator is 10,000.
  4. Total number of SOSL queries issued is 20.
  5. Total number of records retrieved by a single SOSL query is 2,000.
  6. Total number of DML statements issued is 150.
  7. Total number of records processed as a result of DML statements, Approval.process, or database.emptyRecycleBin is 10,000.
  8. Total number of callouts (HTTP requests or Web services calls) in a transaction is 100.
  9. Maximum cumulative timeout for all callouts (HTTP requests or Web services calls) in a transaction is 120 seconds.
  10. Total heap size is 6 MB in synchronous and 12 MB in Asynchronous.
  11. Maximum CPU time on the Salesforce servers is 10,000 milliseconds to 60,000 milliseconds.
  12. Maximum execution time for each Apex transaction is 10 minutes.
  13. Maximum number of push notification method calls allowed per Apex transaction is 10.
  14. Maximum number of push notifications that can be sent in each push notification method call is 2000.
  15. Total stack depth for any Apex invocation that recursively fires triggers due to insert, update, or delete statements is 16.
  16. Maximum number of Apex jobs added to the queue with System.enqueueJob is 50 in synchronous and 1 in Asynchronous .
  17. Total number of sendEmail methods allowed is 10
  18. Total number of SOQL queries issued in Cumulative Cross-Namespace Limit is 1,100.
  19. Total number of records retrieved by Database.getQueryLocator in Cumulative Cross-Namespace Limit is 110,000.
  20. Total number of SOSL queries issued in Cumulative Cross-Namespace Limit is 220.
  21. Total number of DML statements issued in Cumulative Cross-Namespace Limit is 1,650.
  22. Total number of callouts (HTTP requests or Web services calls) in a transaction in Cumulative Cross-Namespace Limit is 1,100.
  23. Total number of sendEmail methods allowed in Cumulative Cross-Namespace Limit is 110.
  24. Default timeout of callouts (HTTP requests or Web services calls) in a transaction in static apex limit is 10 seconds.
  25. Maximum size of callout request or response (HTTP request or Web services call) in static apex limit is 6 MB for synchronous Apex or 12 MB for asynchronous Apex.
  26. Maximum SOQL query run time before Salesforce cancels the transaction in static apex limit is 120 seconds.
  27. Maximum number of class and trigger code units in a deployment of Apex in static apex limit is 5,000.
  28. Apex trigger batch size in static apex limit is 200.
  29. For loop list batch size in static apex limit is 200.
  30. Maximum number of records returned for a Batch Apex query in Database.QueryLocator in static apex limit is 50 million.
Share this...
Share on Facebook
Facebook
Email this to someone
email

Leave a Reply

Your email address will not be published. Required fields are marked *