Governor limits

  1. SOQL Queries:

    • Synchronous: Up to 100 queries per transaction.

    • Asynchronous: Up to 200 queries per transaction.

    • Total records retrieved by SOQL queries: 50,000.

  2. DML Statements:

    • Synchronous: Up to 150 statements per transaction.

    • Asynchronous: Up to 150 statements per transaction.

    • Total records processed by DML statements: 10,000.

  3. Callouts (HTTP requests):

    • Up to 100 callouts per transaction.

    • Maximum cumulative timeout for callouts: 120 seconds.

  4. Heap Size:

    • Synchronous: 6 MB.

    • Asynchronous: 12 MB.

  5. CPU Time:

    • Synchronous: 10,000 milliseconds.

    • Asynchronous: 60,000 milliseconds.

  6. Scheduled Apex:

    • Although asynchronous, it follows synchronous limits.