Interview practice question
Deleting 500 million old rows
Backend Engineering · Relational Databases · Experienced
You need to delete 500 million old rows from a busy table. How do you do it without hurting production?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Avoid one huge DELETE.
- Delete in small batches with pauses.
- Monitor replication lag, locks.
- Partition and drop partitions in future.
- Vacuum afterwards.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.