Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Database Internals · One Database, to the Bolt · with code: Python · about 19 min to read

Play it as a journeyTutor comes with a plan

Pages & Heap Files

Pages & Heap Files
Pages & Heap Files · Open board

Opens the Database Internals series, under Database Internals, the deep-dive set and following Storage Engines. It draws the page you’re about to take apart.

Before you start. You’ve used an app that saves things: a login, a cart, a comment, and somewhere behind it sat a database. This lesson opens that box for the first time: what a table actually is on disk, before any of the machinery later lessons build on top of it.

Lesson 3 of 26 in Database Internals · Free with an account

Keep reading. It's free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

No card, and chalk sends no email. Google sign-in only.

Start free with Google

In this lesson

  • 1979: a database that had to fit in 128 kilobytes
  • The warehouse that will not hand you one can
  • Opening one bin: a label, an empty gap, then cans packed from the back
  • The tag that survives the shelf being rearranged
  • The heap: a warehouse floor with no aisles
  • Your bench

Terms it explains: page, slots, tuple, ctid, heap, `t_xmin` / `t_xmax`, `pd_lsn`, Postgres: heap, InnoDB: index-organized, `_fsm`, `_vm`, column store, Dictionary encoding, Run-length encoding, PAX.

Review Database Internals