~/talk

Using embedded SQL engines for plotting massive datasets on a laptop

Talkat PyData Global 2022 · 2022-12-01..12-03· [databases, data-visualization]
slides:none on file

Claims that a laptop can plot larger‑than‑memory data by pushing aggregations and percentiles into SQLite or DuckDB, computing boxplot percentiles and histogram bin counts with SQL, then handing results to Matplotlib. Demonstration runs on ~4.5M NYC taxi rows, shows memory usage 0.3 GB vs 1.2 GB when compared to pandas, implements percentile queries and binning, provides an open source package (pip install QP SQL) and working code so the method actually produces plots without swapping or clusters.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Traditional in-memory problems
  3. 4:02Why embedded SQL engines
  4. 6:10SQLite and DuckDB overview
  5. 9:36Box plot generation with SQL
  6. 15:35Histogram generation with DuckDB
  7. 18:46Implementation and demos
  8. 21:17Memory efficiency vs pandas
  9. 23:06Q&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.