SpinTheMic
Pro

Interview practice question

Optimising a slow report query

Backend Engineering · Relational Databases · Intermediate

A report query joining five tables takes 40 seconds. Walk through how you would optimise it.

What a strong answer covers

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

  • EXPLAIN ANALYZE to find slow steps.
  • Indexes on join and filter columns.
  • Reduce rows early (filters, aggregates).
  • Check statistics, rewrite query.
  • Pre-aggregate or move to warehouse.
Practise this topic

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

See all topics