Interview practice question
Validating a migration on a huge table
Backend Engineering · Testing · Experienced
You need to add a column with a backfill on a 2-billion-row table. How do you test the migration safely?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Test on production-sized copy/snapshot.
- Measure lock behaviour and duration.
- Online migration tools (gh-ost, pg_repack patterns).
- Batched backfill with throttling.
- Monitor replication lag; dry run.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.