Index

Module 01 · Database InternalsOne Database, to the Bolt

Build three ways to join

B-Tree on Disk
B-Tree on Disk · Open board

The tree that finds one key in a few page reads. One of the three joins in this lesson is built on exactly that: for each row on one side, a lookup in the tree on the other.

Before you start. The Query Planner showed the three join methods in a real plan and the planner’s bet on which to use. Build sort and aggregate with a memory limit built the sort and the hash aggregate, and its partitioning trick returns here. Database 07: The Query Layer built a query layer with no joins at all, and said so. The code is in teaching/code/database-internals/03-joins.

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.

View plans →Already a member? Sign in

Related paper

Review Database Internals →

Saved in this browser, and to your account when you sign in.