Phase 7 of 8 · 4 lessons

Performance: indexes and query plans

Know why a query is slow, read the plan the database chose, and write queries and indexes that let it find rows without reading the whole table.

On six small tables everything is instant. On a hundred million rows, the difference between reading every row and jumping straight to the right ones is seconds versus milliseconds. Interviewers for backend and data roles always ask how you would make a slow query fast.

0 of 4 done