~/talk

Optimize Your Database Operations with Asynchronous Processing

Talkat PyConZA 2021 · 2021-10-07..10-08· [databases, python]
links:none on file
slides:none on file

Live demo copies rows between two tables using coroutines and the event loop and shows SQLAlchemy 1.4 with PsycoPG/AsyncPG cutting insert time (example: ~14k rows 0.6s async vs 2.5s sync), plus a cited 1M rows/sec asyncpg benchmark. Code runs correctly and speedups come from overlapping DB I/O, not magic CPU gains. Emphasis on pre-optimizing queries, library compatibility limits, measurable tradeoffs in complexity and maintenance.

AI-written summary · about

  1. 0:00Introduction
  2. 1:44Database operations overview
  3. 3:51Synchronous vs asynchronous
  4. 7:28Why optimize with async
  5. 8:56Async Python basics
  6. 12:43Async in database ops
  7. 14:49Live demo setup
  8. 20:04Async vs sync results
  9. 24:37Key takeaways
  10. 27:29Q&A session
~/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.