~/talk

A Deep Dive Into Database Internals

slides:none on file

Walks through concrete internals: data laid out in fixed 4KB pages, B+Tree page splits change tree height so sequential inserts cut IO, large records become overflow pages and compaction can force roughly 2x disk needs. Explains durability via write-ahead log, fsync pitfalls (macOS often no-op), preallocating logs, and partial-write validation. Shows MVCC by copy-on-write pages and a page-translation table, and claims a single-writer model cuts lock-management overhead (about 40% of DB CPU). Recovery examples: naïve replay can take hours on cloud storage, optimized replay drops to minutes.

AI-written summary · about

  1. 0:00Start
  2. 4:26What does a database do?
  3. 6:38The baseline
  4. 11:26Putting the data on disk
  5. 14:41Database secret sauce!
  6. 26:18How do you implement this?
  7. 32:30Fsync gate
  8. 33:48Durability? What about rollback?
  9. 42:22Page Transaction Table (PTT)
  10. 45:06Communication model, again
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.