Skip to content
Log in

Backfill Script Review

Reviews a one-off data script for the three properties it needs — resumable, idempotent, rate-limited — before it is run at 2am.

0

Share this prompt

Free — no card needed

Create a free account

to open Backfill Script Review — and the other 364 prompts across 21 categories.

We store your email address to send these. We never sell it or pass it to advertisers. Withdraw at any time. Privacy Policy.

Already have an account?

CategoryCodingForDevelopers, OperatorsTested onClaudeChatGPT

Running it, start to finish

  1. Confirm the script is idempotent and resumable before anything else.
  2. Run it on a copy, then a small limited batch in production.
  3. Verify the limited batch before releasing the full run.

What you get back

The output this produces, every time.

  • Checks idempotency and resumability first, since scripts get interrupted and re-run.
  • Requires key-based pagination over offset, which silently skips and repeats rows on live data.
  • Demands a dry run that shows actual sample changes rather than a count.

Getting better results

Where this usually goes wrong, and how to avoid it.

  • Never use offset pagination on live data. Rows shift under you, so an offset walk skips some and processes others twice, silently.
  • Run a small limited batch first. Then verify before continuing. The full run should never be the first run against production.
  • Rate-limit against the database. A backfill that saturates the connection pool takes down the application it was written to fix.

More Coding prompts

All Coding

Written for The AI University. Every prompt in this library is original work — authored, tested and revised here, not collected from elsewhere. 365 of them, free with an account.