WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Governor limits
1. In depth view of the governor limits in apex SalesForce
SHIVANATH.D
2. What are Governor Limits ?
• Runtime limits enforced by apex
• Ensures no monopoly in resources.
Memory
• Similar to heap size in Java.
• Back bone of MULTI-TENANT
architecture. Database Resources
• The Organization Shares the limit
No of Script Statements
No of Records processed
3. How are Governor Limits Calculated?
There are a number of factors that
determine what governor limit is
used, and when it is applied
Invocation of Apex-Entry
How Many Records
Which Governor Limit
4. Entry Point
• Governor limits are applied based
on the entry point Apex Trigger
•insert, update, delete, merge,
upsert, and undelete are the Trigger
Apex Web service
operations
• All Apex triggers are bulk triggers.
• Batch of up to 200 records Anonymous Block
• Anonymous block does not get
stored in the metadata Visualforce Controller
•Run Tests is a Force.com Web
Services API call used to execute test
methods Run Tests
5. Governor Limit Scope
• Governor Limits are shared by the
organization
Maximum of 100 SOQL Queries
•From beginning till end of
execution
Max of 50,000rows retrieved
•Governor limits are not specified for
each separate trigger. Max of 200,000 scripts executed
•Any Apex class, method, or trigger
invoked by code executed within the Max 50 million Batch SOQL
entry point will count towards the
same governor limits as it's a Batches of up to 2,000 records
synchronous request
6. Synchronous vsAsynchronous Apex
• Normal Execution Synchronous
•@future is asynchronous
Synchronous
•Business Logic is offloaded
•Efficiency increases
• but , more callouts
VS
Asynchronous
7.
8. Limits
SOQL statements issued in a request.
Database.countQuery
Database.getQueryLocator
Database.query
DML queries issued in a request.
Approval.process
Database.convertLead
Database.emptyRecycleBin
Database.rollback
Database.setSavePoint
delete and Database.delete
insert and Database.insert
merge
undelete and Database.undelete
update and Database.update
upsert and Database.upsert
System.runAs