Index

Module 01 · Database InternalsOne Database, to the Bolt

MVCC & Vacuum

MVCC & Vacuum
MVCC & Vacuum · Open board

The board behind this lesson, following B-Tree on Disk and part of the same Database Internals - the deep-dive set series. It draws the instant a database decides which version of a row you get to see.

Before you start. The last lesson showed you the index: a wide, shallow tree of pages that finds any row in three or four page reads. This one is about what happens to the row itself once two people try to read it and write it at the same moment.

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

Lab

One transaction has been open for an hour and nobody noticed. Why is the table three times the size of its data?

Press Commit next transaction to the end, then drag How long the oldest reader has been sitting there right and watch The bill.

Open The vacuum lag →

Related paper

Review Database Internals →

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