How SQL Databases Come up with Algorithms that You Would Have Never Dreamed Of
summary
Argument that modern cost‑based engines (Oracle, SQL Server, PostgreSQL) produce algorithms developers wouldn’t pick: thousand-line-long SQL running against billion-row tables in far below a millisecond, use of window functions to compute cumulative daily revenue instead of nested maps/loops, and the optimizer choosing a surprising plan (scan ~5,400 film_actor rows + hash join rather than six indexed counts). Demo of execution plans, histograms, and adaptive execution plans (Oracle 12 / DB2) shows the DB rewrites algorithms at runtime and it works on real large datasets.
AI-written summary · about
chapters (11)
- 0:00The power of SQL
- 4:43SQL vs Java productivity
- 7:09The complexity of Java
- 13:26Iterative data challenges
- 17:18Window functions in SQL
- 22:11Streams and declarative code
- 27:29SQL logical operations
- 32:23Understanding execution plans
- 39:14Indexing and data sets
- 44:20Database adaptability
- 48:06Conclusion and wrap-up
related talks
51mHow Modern 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
02h 42mSQL (The Return): Demystifying Preconceptions and Using the DB Effectively
41mModern SQL: Evolution of a dinosaur
18mApparently, you can "debug" your SQL queries
32mBecause SQL is everywhere but you don't want to use it
46mAwesome SQL – tips and tricks for application developers
