Make each chunk idempotent and record progress. Load into a staging table with a batch id, apply changes with a set-based MERGE keyed on the business key so re-running a chunk changes nothing, and write the last committed key range to a checkpoint table in the same transaction as the chunk. On restart, read the checkpoint and continue. Keep the import's input (file or snapshot) immutable so a re-run sees the same data.
Checks they design for idempotency and checkpoints rather than all-or-nothing
Last updated 23 Nov 2026.