~/talk

Optimizing SQL + Python Pipelines for Data Science

Talkat PyColorado 2019 · 2019-09-07..09-08· [databases, python]
slides:none on file

Clear, actionable takeaways: flipping the FROM table can save seconds at scale (one example yields a six‑second gap), moving complex logic into temp tables beats nested subselects for optimization and debuggability, prefer union all when duplicates don’t matter, do lead/lag and heavy joins in SQL rather than pandas, export a trimmed result to a compressed CSV to read into pandas faster, and enabling batch writes (e.g. rewriteBatchedStatements=true) cuts multi‑hour writes down to minutes.

AI-written summary · about

  1. 0:00Start
  2. 0:44Introduction
  3. 2:49SQL and Python pipelines
  4. 3:54SQL best practices
  5. 5:39Temp tables for performance
  6. 7:23Indexing and query tips
  7. 9:25Join data before Python
  8. 11:12Data volume vs ML trade-offs
  9. 13:15Feature engineering: SQL vs Python
  10. 15:42Pandas strengths and limits
  11. 16:43SQL to pandas transfer
  12. 18:08Batch writing for exports
  13. 19:10Summary and Q&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.