Interview practice question
A migration caused a full outage
Backend Engineering · Relational Databases · Experienced
A simple ALTER TABLE on a busy table caused all queries on that table to hang for minutes, even though the ALTER itself should be quick. What happened?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- ALTER waited for lock behind long query.
- All new queries queued behind ALTER.
- Lock queue pile-up.
- Use lock_timeout and retries.
- Kill long queries first; run off-peak.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.