- All Courses
- PostgreSQL for Developers
- Query Performance
- How indexes work
How indexes work
An index is a sorted structure the planner may choose to use. Column order in a composite index decides which queries it can serve.
- 5m
- Intermediate

Video by Ivan talks about computers · YouTube
Check your understanding
3 questions. Unlocks when you finish the video.
Overview
What this lesson covers
- Understand B-tree indexes and column order
- Add partial and expression indexes where they fit
- Weigh the write cost of every index you add
This lesson sits in Query Performance, part of PostgreSQL for Developers. It assumes what came before it and leads directly into the next lesson in the module.
In this lesson you will:
- Understand B-tree indexes and column order
- Add partial and expression indexes where they fit
- Weigh the write cost of every index you add
Resources
Your notes will live here
Note taking is not available yet. Nothing you type would be saved, so the tab stays read-only for now.