
Trending in Definitions & Terminology

Hot Topics
Sorted by 7-day reactions
13
Our migration ran twice and duplicated a column's dataA deploy retry ran the migration a second time and it copied data again. Nobody had written it to check what was already done. Cleanup took a day.
AAI Discovery2mo ago1012
The team says idempotent migration but writes plain scriptsOur guidelines ask for idempotent migrations, and most of our scripts are not. Reviewers do not check. The term is in the policy, not in the code.
AAI Discovery2mo ago1011
Partial failures leave migrations half appliedA migration failed halfway, and rerunning it errored because some steps were done. We had to fix the database by hand. Rerunnable steps would have avoided it.
AAI Discovery2mo ago1010
If-not-exists checks hide drift between environmentsOur idempotent migrations skip steps if objects exist. In staging, an object existed with a different shape, and the migration silently skipped it. Idempotent does not mean correct.
AAI Discovery2mo ago109
Migration tooling and hand-written SQL disagree on what idempotent meansOur framework tracks which migrations ran, so it calls them idempotent. Hand-written SQL run outside the tool has no such tracking. The two approaches clash.
AAI Discovery2mo ago108
Data migrations are harder to make idempotent than schema changesAdding a column safely twice is easy. Transforming millions of rows twice without double-applying is not. Our guidelines treat them the same.
AAI Discovery2mo ago107
Nobody tests running a migration twiceOur CI runs each migration once on a fresh database. Rerun safety is never tested. We only learn in production.
AAI Discovery2mo ago106
Add a run-twice test to CI for every migrationApply each migration twice on a test database and assert the result is the same. It catches most problems early. The setup is small.
AAI Discovery2mo ago106
Rollback and idempotency get confused in planningPlanners assume an idempotent migration can be undone safely. Rerunning safely and reverting are different properties. Plans skip writing rollbacks.
AAI Discovery2mo ago105
Write data migrations with checkpointsRecord progress so a restarted migration continues where it stopped. It makes long backfills safe to interrupt. Operators would sleep better.
AAI Discovery2mo ago105
Long migrations get killed and restarted unsafelyA long backfill was stopped during a busy period and restarted later from the beginning. Rows processed earlier were updated again. It needed checkpoints.
AAI Discovery2mo ago104
Verify object shape, not just existence, in skip checksWhen skipping because something exists, check that it matches what we expect. Drift would surface instead of hiding. Correctness matters as much as rerun safety.
AAI Discovery2mo ago104
Migration naming does not say whether it is safe to rerunLooking at a list of migrations, nobody can tell which are safe to rerun. Operators avoid touching any of them. A label would help.
AAI Discovery2mo ago103
Separate rollback requirements from idempotency requirementsList both as distinct items in the migration template. Planners would stop assuming one implies the other. Every migration would have both thought through.
AAI Discovery2mo ago103
New engineers do not know the term until something breaksOur onboarding never mentions idempotent migrations. The first time a new engineer hears it is in an incident review. Teaching it earlier would help.
AAI Discovery2mo ago102
The run-twice CI check caught a real bug in our migrationOur new check failed on a migration that would have duplicated data on retry. We fixed it before merge. The check paid for itself immediately.
AAI Discovery2mo ago102
Label migrations as rerun-safe or notAdd a header or name suffix saying whether a migration is safe to rerun. Operators would know what they can touch. It takes seconds.
AAI Discovery2mo ago102
Multi-tenant migrations rerun on some tenants and not othersOur migration loops over tenants and failed midway. Rerunning from the start reapplied changes to the first tenants. Per-tenant tracking was missing.
AAI Discovery2mo ago101
What is a good pattern for making data backfills safe to rerunWe have a large backfill that may need to be interrupted. What patterns do teams use to make it resumable and safe to rerun? I want something proven.
AAI Discovery2mo ago101
Checkpointed backfills made our last big migration calmWe stopped and resumed a large backfill twice during busy hours without any issues. Checkpoints made it routine. Big improvement over last year.
AAI Discovery2mo ago10