Databases are amazing
summary
A tiny teaching database called Wormwood is a 660-line TypeScript read-only engine that stores newline-delimited JSON and implements select, where, order and a mean aggregation; its parser is a sequence of simple sequential parsers, the planner emits a two-step plan (producer then filter) and the executor wires a chain of iterators where next() pulls rows to EOF. Creating an index mapping age → line numbers cuts one demo query from 187ms to 112ms, but file layout forces extra scans.
AI-written summary · about
chapters (12)
- 0:00Introduction to databases
- 1:49Criticism of software industry
- 7:55History of database technology
- 10:01Introducing Wormwood database
- 13:40Query parsing and planning
- 19:27Query execution with iterators
- 23:18Live demo of query execution
- 26:03Complexity analysis in databases
- 30:28Understanding database indexes
- 36:19Index performance demonstration
- 38:31Summary and conclusion
- 39:13Question and answer session
