SpinTheMic
Pro

Interview practice question

A query is slow on a large table

System Design · Databases · Beginner

A query that finds orders by customer email takes 8 seconds on a 50-million-row table. What do you check?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Run EXPLAIN to see the plan.
  • Likely a full table scan.
  • Add index on the filter column.
  • Check functions on the column break index use.
  • Retest and monitor.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics