Skip to content
Theory · The Query Planner · lesson 1 of 13

Statistics and row estimates

From the summary sheet rows=3641 the Seq Scan route along the whole shelf is chosen, and the faint Index Scan route via the catalogue is dropped

Back in the coffee shop's office, before fetching entries, the clerk decides how to find them. He can walk the shelf page by page, or open the catalogue by the door and jump from card to shelf. He cannot look into the ledger itself until he has picked a route.

In this lesson

  • What ANALYZE collects
  • Most common values
  • The histogram
  • Common mistake
  • Key points