Salesforce Governor Limits are like rules that ensure the platform runs smoothly for everyone by limiting how many resources you can use in your code. Here’s a simple breakdown:

  1. SOQL Queries: You can only run 100 queries in a single transaction.
  2. DML Statements: You can only perform 150 DML operations (like insert or update) in one go.
  3. SOQL Query Rows: You can retrieve a maximum of 50,000 records in one query.
  4. Heap Size: You can use up to 6MB of memory in a single transaction for synchronous tasks and 12MB for asynchronous.
  5. CPU Time: Your code can run for a maximum of 10 seconds.
  6. DML Rows: You can insert/update up to 10,000 records in one transaction.
  7. Future Methods: You can only schedule 50 future tasks at once.
  8. API Calls: There’s a limit of 100,000 API calls per day.
  9. Batch Apex: Each batch job can handle up to 50 million records but processes them in chunks of 2,000 records at a time.

These limits help ensure that no single user or process overwhelms the system, keeping everything running efficiently.

By Vineet Yadav

I am a Salesforce Developer with over 11 years of IT experience, specializing in Apex, Lightning Web Components, and Salesforce integrations. I've worked with companies like HCL, Hitachi, Capgemini, and LTIMindtree, delivering impactful CRM solutions. My blog, thevineetyadav.com, offers tutorials and insights into Salesforce development to help others enhance their skills and careers.

Leave a Reply

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