Module 01 · Database InternalsOne Database, to the Bolt
The Query Planner
The Query Planner · Open board
The Database Internals board behind most “why is this query slow” questions.
Before you start. The last lesson showed that Postgres, the open-source database this series opens up, never deletes a row on update - it writes a fresh copy and leaves the old one alone for anyone still reading it, until vacuum clears it away later. This lesson is about a different machine entirely: the one that decides, for any query you type, which of the table’s rows to even look at, and in what order.
Continue reading with a plan
The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.