~/talk

How shit works: Databases

Talkat GeeCON 2023 · 2023-04-19..04-21· [databases, computing-history]
slides:none on file

Most databases are built on one of two on‑disk structures and choosing between them is concrete not conceptual: B‑trees optimize reads and back indexes in Postgres/MySQL and many filesystems, with O(log n) lookups but read‑before‑write and write amplification on heavy inserts; LSM trees optimize writes via an in‑memory memtable, flushed to immutable SSTables and merged by compaction (Bloom filters reduce lookup IO). Practical choice order: operational capacity, access patterns (write‑heavy vs read‑heavy), then scale.

AI-written summary · about

  1. 0:00Introduction to databases
  2. 1:51Choosing the right database
  3. 4:40What is a database
  4. 7:06Database problem domains
  5. 8:31Storing data on disk
  6. 11:23Durable storage systems
  7. 12:25B-trees explained
  8. 23:31When B-trees aren't ideal
  9. 29:13LSM trees introduction
  10. 36:39LSM tree compaction
  11. 42:40How to choose a database
  12. 49:06Q&A
~/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.