Interview practice question
Query plan suddenly changes
System Design · Databases · Experienced
A query that ran in 20 ms suddenly takes 30 seconds after a routine data growth, with no code change. What happened and what do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Optimizer chose a new, worse plan.
- Stale or changed statistics.
- Compare EXPLAIN plans.
- Update stats, adjust index, rewrite query.
- Pin plan or add monitoring for regressions.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.