Database management systems notes

From SQL to a Plan

Parsing, rewriting, plan generation and costing, the four stages before anything runs. Every section is a drawn page beside a clear written explanation, about 19 minutes in all.

  • Chapter 23 of 34
  • About 19 minutes
  • 6 sections

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

The first drawn page of From SQL to a Plan: The four stages
The chapter's first page: The four stages

In this chapter

  • The four stages
  • Rewrites that are always safe
  • The cost model
  • Cardinality estimation, and why it fails
  • Searching for a join order
  • Planning is not free

Next chapters

Read the whole chapter

Sign in and the chapter opens with every drawn page, and all 35 database management systems chapters beside it.

DSA comes with the all labs plan and every ChaiCode batch.