Skip to content
Theory · Indexes and query plans · lesson 1 of 11

How the database finds rows

A thick book open at its index: the highlighted line leads to bookmarks at pages 12 and 340

Imagine a thick 500-page book about coffee with no index at the back. You need to find every place that mentions the raf. There is no other way: leaf through the book page by page and read each one.

In this lesson

  • A table is stored in pages
  • A full scan
  • Why rows aren't kept in order
  • Common mistake
  • Key points