~/talk

Falling in Love with SQL

Talkat Big Sky Dev Con 2026 · 2026-07-24..07-25· [databases]
slides:none on file

Shows how real queries against a 90+ million rows books table drop from 3.6 seconds to 0.1 milliseconds by switching from a full table scan to a composite index on (publisher, title) and using ordered index reads. Demonstrates the failure of a single-column index for high-cardinality publishers with 2 million books, explains CTE plus cross join lateral to force per-publisher top N and avoid gigantic sorts, covers merge joins and the planning cost explosion for many CTEs, and warns that indexes slow writes and consume space.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Why SQL Dominates Web Performance
  3. 3:37How B-Tree Indexes Work
  4. 8:32Optimizing Ordered Lookups with Composite Indexes
  5. 13:12Multi-Publisher Queries with CTEs and Lateral Joins
  6. 18:38Indexed Joins and Merge Joins
  7. 22:11Index Costs and Deliberate Indexing
  8. 23:40Q&A: A Production Over-Indexing Incident
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.