PrepCity

Indexing and query plans

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 7 pages · about 4 min

Indexing and query plans

The planner uses table statistics to choose between an index and a full scan; a composite index in the query’s shape finds a few rows without reading them all.

Words you’ll learn

  • Row
  • Seq Scan
  • PostgreSQL

Page by page