Database indexing
The core idea
An index maintains another path to stored rows so a query can avoid inspecting everything.
That path costs space and write work.
In this lesson
- Start with the query
- See the work change
- Column order determines the useful range
- Clustered, secondary and covering mean different things
- Pay for the rows and columns you include
Continue reading
Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.