~/talk

Unlearning SQL

Talkat PyCon US 2025 · 2025-05-16..05-18· [databases, python]
links:none on file
slides:none on file

Claim: treat SQL as a design language and implement Select/From/Where/GroupBy/Having pipelines in Python to avoid database overheads for transient data. Implementation details: use itertools.product or generator-based filters and maps, implement joins as lookup join (hash map lookup) or sort‑merge via external sort, do grouping into a defaultdict of lists then apply aggregates, and benchmark against SQLite3 or DuckDB — in many cases the in‑memory Python pipeline runs simpler and faster.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05SQL's overuse
  3. 3:35Transient data in databases
  4. 4:58SQL clauses in Python
  5. 7:48Query optimizations in Python
  6. 9:14SQL joins in Python
  7. 13:07Sort merge join in Python
  8. 14:54Lookup join in Python
  9. 16:00Group by and having in Python
  10. 19:16SQL as design language
  11. 23:21Stop using SQL for transformation
  12. 25:11Q&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.