~/talk

Build-a-Database with Python

Talkat PyCon US 2022 · 2022-04-27..05-03· [databases, python]
links:none on file
slides:none on file

Builds a small working database in Python that actually persists and answers queries using a simple SQL-like grammar and a Prompt toolkit REPL for input output The demo uses an in memory dict then appends writes to disk with tombstones and segmented logs, adds compaction and a persisted index, and replaces a hash map with a B tree so range queries become efficient The talk claims a Btree index speedup from O(N) to O(1) for basic row access and shows a runnable yeet db with compaction and crash recovery

AI-written summary · about

  1. 0:00Start
  2. 2:40WHAT MAKETH A DATABASE
  3. 6:06Grammar
  4. 6:49Query Executor
  5. 10:20Remember to Flush!
  6. 11:56INDEXES
  7. 20:22Insertion
  8. 21:24Old Boy, New tricks
~/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.