Diagnose a Slow Query

Talk it through out loud with your AI coach.

The problem

  • hard
  • Pro

A query that used to take ten milliseconds now takes four seconds, and nobody changed the code. Talk through how you'd investigate and what the likely causes are.

What a strong answer covers

  • Starting from measurement rather than guesses.
  • Changes in the data that can make a once-good plan bad.
  • Pressure from outside the query itself.
  • Matching the fix to the cause and confirming it worked.

Common mistake: Jumping to add an index before finding out what actually changed.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud