~/talk

No More Raw SQL: SQLAlchemy, ORMs & asyncio

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
links:none on file
links:none on file
slides:none on file

Claims that raw SQL becomes unnecessary by using SQLAlchemy’s core, ORM and SQLAlchemy asyncio extension to run the same service both synchronously and asynchronously. Demonstrates a FastAPI marketplace (customers, orders, order_items) backed by sqlite (postgress variant available), builds engines/sessions, shows emitted SQL, uses select()/func.sum() and async_sessionmaker/task groups, and commits inserts; examples run in Codespaces and the example service actually works with logged queries and successful commits.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Bloomberg Python contributions
  3. 8:12Workshop setup
  4. 27:26From raw SQL to SQLAlchemy
  5. 49:06SQLAlchemy ORM
  6. 1:09:01Query optimization
  7. 1:21:41Introduction to asyncio
  8. 1:38:18SQLAlchemy with asyncio
  9. 1:57:31Code review
~/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.