~/talk

Inside a Database A Code Level Walkthrough of an RDBMS I Built in Python

Talkat PythonAsia 2026 · on Saturday, 2026-03-21· at 16:15· Pardo Hall (Secondary Hall)· [databases, python]
links:none on file
slides:none on file

A tiny RDBMS called KIDB is reimplemented in pure Python standard library and actually runs: SELECT returns ID 258 and name Alice, INSERT adds ID 259 Bob, DELETE marks the slot empty rather than erasing data. The stack is full‑code: regex lexer, hand‑written parser producing an AST, simple planner/executor pipeline, buffer manager + file manager using 400‑byte block and 22‑byte slot layouts, little‑endian storage, and a write‑ahead log for recovery; source is on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Why build in Python
  3. 2:39KIDB architecture overview
  4. 4:32Lexer tokenizing SQL
  5. 7:29Syntax analysis and AST
  6. 9:02Parsing SELECT statements
  7. 13:23Query planning and execution
  8. 15:41Storage layer components
  9. 18:02SELECT data retrieval
  10. 20:39Insert update delete operations
  11. 24:00Binary file structure
  12. 26:44SQL processing summary
  13. 27:49Closing remarks
~/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.