Activity Forums Salesforce® Discussions What are Salesforce Governor Limits?

  • shariq

    Member
    September 24, 2018 at 4:17 am

    Governor Limits in Salesforce.com are the run time limits enforced by the apex runtime engine to write scalable and efficient code.
    Apex code runs as part of atomic transactions. Governor execution limits ensure the efficient use of resources on the Lightning Platform multitenant platform. Most of the governor limits are per transaction, and some aren’t, such as 24-hour limits.

  • Parul

    Member
    September 28, 2018 at 10:05 pm

    Governor Limits in Salesforce.com are the run time limits enforced by the apex runtime, Since Salesforce runs on multi-tenancy environment and in order to have same performance to the database,it has imposed some run time limits called governor limits. There are many types of Salesforce Governor limits like Pre transaction limits, Force.com platfform apex limits, static apex limits and many other limits.
    Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. If some Apex code exceeds a limit, the associated governor issues a runtime exception that cannot be handled.

  • Avnish Yadav

    Member
    September 30, 2018 at 1:47 am

    Governor limits are Salesforce’s way of forcing you to write efficient, scalable code.

    The good:

    Governor limits prevent other orgs from writing bad code and taking up all the cloud CPU.
    Coding limits in general are completely unique to Apex – consider it job security!
    You have a friend that will teach you how to dominate these limits!
    The bad:

    These are hard limits on your org preventing you, for example, from doing too many SOQL queries in a trigger (max: 100 queries).
    Upgrading your edition or paying Salesforce more money will not increase your limits! The only workaround is to understand how to navigate around them.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos