What is Governer Limit , Why this term even exist in Salesforce ?
As you must be aware salesforce is a could service provider hosting so many applications, having millions of partners and customer who interact with this cloud on daily basis.
So to avoid monopoly of a single individual/organisation and establishing the equality in terms of bandwitdh to access the shared resource governor limits are in place with salesforce.
Governor limits are classified on two measures
1. Synchronous Interaction with servers.
2. Asynchronous Interaction with servers.
Types of Governer Limit
Per-Transaction Apex Limits
Category | Synchronous | Asynchronous | |
SOQL Limits | Total number of SOQL queries issued | 100 | 200 |
Total number of records retrieved by SOQL queries | 50000 | ||
Total number of records retrieved by Database.getQueryLocator | 10000 | ||
SOSL Limits |
Total number of SOSL queries issued |
20 |
|
Total number of records retrieved by a single SOSL query | 2000 | ||
DML |
Total number of DML statements issued | 150 | |
Total number of records processed as a result of DML statements, Approval.process, or database.emptyRecycleBin |
10000 |
||
Invoking New Apex through Triggers invocation from a running Apex |
Total stack depth for any Apex invocation that recursively fires triggers due to insert, update, or delete statements | 16 | |
Callouts and Webservice | Total number of callouts (HTTP requests or web services calls) in a transaction |
100 | |
Maximum cumulative timeout for all callouts (HTTP requests or Web services calls) in a transaction |
120 seconds | ||
Future Methods | Maximum number of methods with the future annotation allowed per Apex invocation | 50 | 0 in batch and future contexts; 1 in queueable contex |
Queueble Apex |
Maximum number of Apex jobs added to the queue with System.enqueueJob |
50 | 1 |
Total number of sendEmail methods allowed |
10 | ||
Heap Size |
Total heap size |
6 MB |
12 MB |
CPU Exception Limit |
Maximum CPU time on the Salesforce servers |
10 second |
60 seconds |
APEX |
Maximum execution time for each Apex transaction |
10 minutes | |
Push Notifications |
Maximum number of push notification method calls allowed per Apex transaction |
10 |
|
Maximum number of push notifications that can be sent in each push notification method call |
2000 |
Lightning Platform Apex Limits
Static Apex Limits
Size-Specific Apex Limits
Push Notification Limits
Mobile application type | Maximum notifications per app per day |
---|---|
Provided by Salesforce (for example, Salesforce for iOS) | 50,000 |
Developed by your company for internal employee use | 35,000 |
Installed from the AppExchange | 5,000 |
Comments
Post a Comment