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

**Topic:** Apex Trigger · **Difficulty:** Hard · **Asked at:** Deloitte, Accenture, HCL · **Tags:** apex-trigger, trigger, governor-limits, bulk

Read it on the site: https://www.forcechallenges.com/interview-questions/if-a-batch-of-250-records-is-inserted-via-data-loader-how-many-times-does-the-trigger-execute-and-how-are

## Answer

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.

---
Source: ForceChallenges · last updated 2026-10-21
