Development questions

If a batch of 250 records is inserted via Data Loader, how many times does the trigger execute and how are governor limits shared?

DevelopmentHardDeloitteAccentureHCL

Triggers always process records in chunks of up to 200, so 250 records means two trigger invocations (200 + 50).

  • In a single Apex transaction (e.g. insert list of 250), both chunks run in the same transaction and share one set of governor limits.
  • Through the Bulk API / Data Loader in Bulk mode, each 200-record chunk is processed as its own transaction with fresh limits.
  • Data Loader on the SOAP API sends at most 200 per call.

That is why triggers must be bulk-safe: code must work for a full 200-record chunk within limits.

apex-triggertriggergovernor-limitsbulk