Skip to main content

Governor Limits


 What is governor limits?           

    Governor limit is the permitted resource usage per transaction in force.com. This is enforced and governed by Salesforce to stop misuse of common resources.


Specification Details:


There are 2 modes Synchronous & Asynchronous.


Synchronous: Executed in real time and the calling process waits for the process to complete



Asynchronous: Executed in a separate thread and only when the resources are available. Calling process doesn't wait for the completion of the process.


DescriptionSynchronous LimitAsynchronous Limit
Total number of SOQL queries issued1100200
Total number of records retrieved by SOQL queries50,000
Total number of records retrieved by Database.getQueryLocator10,000
Total number of SOSL queries issued20
Total number of records retrieved by a single SOSL query2,000
Total number of DML statements issued2150
Total number of records processed as a result of DML statementsApproval.process, or database.emptyRecycleBin10,000
Total stack depth for any Apex invocation that recursively fires triggers due to insertupdate, or delete statements316
Total number of callouts (HTTP requests or web services calls) in a transaction100
Maximum cumulative timeout for all callouts (HTTP requests or Web services calls) in a transaction 120 seconds
Maximum number of methods with the future annotation allowed per Apex invocation500 in batch and future contexts; 1 in queueable context
Maximum number of Apex jobs added to the queue withSystem.enqueueJob501
Total number of sendEmail methods allowed10
Total heap size46 MB12 MB
Maximum CPU time on the Salesforce servers510,000 milliseconds60,000 milliseconds
Maximum execution time for each Apex transaction10 minutes
Maximum number of push notification method calls allowed per Apex transaction10
Maximum number of push notifications that can be sent in each push notification method call2,000
Maximum number of EventBus.publish calls for platform events configured to publish immediately150

Comments