How Modern SQL Databases Come up with Algorithms that You Would Have Never Dreamed Of
summary
Modern cost‑based optimisers (Oracle, SQL Server, PostgreSQL) routinely pick algorithms that beat handwritten code, turning thousand‑line queries into sub‑millisecond work on billion‑row tables. Examples include using a hash join instead of nested loops, computing cumulative totals with a window function, and Oracle’s adaptive execution plans that replan mid‑run. Execution plans show cardinality and cost estimates (often off by ~2×) and explain why adding or dropping an index changes the chosen algorithm.
AI-written summary · about
chapters (4)
related talks
50mHow SQL Databases Come up with Algorithms that You Would Have Never Dreamed Of
57mHow modern SQL databases arrive at algorithms you never dreamed of
20mLevel up your SQL skills as a developer
41mModern SQL: Evolution of a dinosaur
01h 00mComplex Queries with Modern SQL
02h 42mSQL (The Return): Demystifying Preconceptions and Using the DB Effectively
51mExplaining the Postgres Query Optimizer
26mBeyond Joins and Indexes
