~/talk

How to Build a Database

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [databases]
links:none on file
slides:none on file

A tiny readable database called Wormwood is implemented as 660 lines of TypeScript that reads newline JSON FIFA records, parses SQL-like strings into a parser → planner → executor pipeline, builds an iterator-based dataflow graph, and supports SELECT/WHERE/ORDER BY plus a mean aggregate. Indexes are JSON maps of value → line numbers; adding one speeds an example query from 244ms → 147ms but still forces slow text-file line scans.

AI-written summary · about

  1. 0:00Database building introduction
  2. 4:46Wormwood demo introduction
  3. 8:04SQL as data pipeline
  4. 13:21Iterator model in engines
  5. 16:52Parsing SQL queries
  6. 21:56Parser functions in Wormwood
  7. 29:45Query planning basics
  8. 32:16Complexity analysis
  9. 37:18Indexes for performance
  10. 43:35Wormwood indexes execution
  11. 46:40Wormwood source code
  12. 47:09Q&A on implementation
~/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.