Fantastic Databases and Where to Find Them
summary
Shows concrete tradeoffs and wins: SQLite runs 20 million SQL queries a day on a shared VM, Postgres unlogged tables (used in CI) shave 3.5 minutes off slow test suites and 20 seconds off fast ones, window functions replace multi-query Ruby logic for averages, cheapest-per-category and cumulative sums, explain/analyze plus buffers reveal time-to-first-row and planning vs execution costs, a gem exposes estimated counts, Citus adds columnar storage that compresses 40TB to 4TB and distributed tables, CockroachDB and ClickHouse are suggested for geo/ingest scale.
AI-written summary · about
chapters (11)
- 0:00Introduction to database myths
- 0:52Database dragons and layouts
- 3:18Rails app and database focus
- 5:26SQLite the tiny dragon
- 8:37Postgres the mighty elephant
- 11:02Window functions power
- 15:14Understanding EXPLAIN costs
- 20:51Optimizing with buffers and indexes
- 25:00Postgres extensions magic
- 29:12Exotic databases overview
- 34:48Q&A on database costs
