Loading lesson…
Level 1 · Apprentice0 XP
See what the database actually does, and fix slow queries with evidence.
Step 1 / 6
ProblemA developer adds an index and the query is still slow. They add three more. Nothing changes. Nobody looked at what the planner actually does.
← → step
Before this: How indexes really work
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Enable pg_stat_statements, run a small load, take the three most expensive queries, read their EXPLAIN (ANALYZE, BUFFERS) plans, and fix one with an index or a rewrite. Record before and after times.