~/talk

Faster SQL with pandas and Apache Arrow

Talkat PyData NYC 2023 · 2023-11-01..11-03· [databases, python]
name:Will Ayd
links:none on file
slides:none on file

Pandas connects to databases using new Apache ADBC drivers that pass Arrow columnar data and move work into compiled code so SQL I/O gets both correct types and far higher throughput. Read_sql with dtype_backend="pyarrow" preserves nullable integers and reproduces database 32‑bit integers for true roundtrips. Benchmarks show default ODBC inserts around 22s versus ADBC at 658 ms (roughly 35× faster) without custom copy hacks. Drivers for Postgres SQLite BigQuery and Flight SQL appear on PyPI and require pandas 2.2 / ADBC 0.8.

AI-written summary · about

  1. 0:00Introduction
  2. 2:57Pandas SQL drivers limits
  3. 7:58Data transfer mismatch
  4. 10:47Pandas data type issues
  5. 16:29to_sql performance issues
  6. 21:26Arrow Database Connectivity
  7. 23:55ADC missing value handling
  8. 25:22ADC performance gains
  9. 27:07Arrow rich data types
  10. 29:41ADBC drivers overview
  11. 33:32ADBC development guide
  12. 34:36Flight SQL integration
  13. 35:40Q&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.