Activity Forums Salesforce® Discussions What is Salesforce Apex transaction?

  • shariq

    Member
    September 22, 2018 at 11:00 am

    An Apex transaction represents a set of operations that are executed as a single unit. The operations here include the DML operations which are responsible for querying records. All the DML operations in a transaction either complete successfully, or if an error occurs even in saving a single record, then the entire transaction is rolled back.

  • Parul

    Member
    September 22, 2018 at 12:51 pm

    Apex Transactions ensure the integrity of data. Apex code runs as part of atomic transactions. Governor execution limits ensure the efficient use of resources on the Lightning Platform multitenant platform.

    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.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos