~/talk

Asynchronous Database Access with GINO

Talkat PiterPy 2020 · 2020-08-03..08-06· [databases, python]
links:none on file
slides:none on file

An async ORM named GINO implements PostgreSQL access with asyncpg and SQLAlchemy Core, avoiding session-managed state by returning plain Python objects. It shows a real deadlock caused by the default 10-connection pool when blocking awaits are used, then builds a solution: an async engine plus a loader system that maps query rows into object instances, supports complex multi-CTE queries and manual relationship loading, uses Alembic for migrations, and reports that the approach works in production.

AI-written summary · about

  1. 0:00Introduction to async DB access
  2. 2:18ORM vs raw SQL trade-offs
  3. 4:24Async DB access challenges
  4. 7:12Avoid blocking the main thread
  5. 9:01Evolution of async ORMs
  6. 10:29Introducing GINO's design
  7. 13:16Pure Python model instances
  8. 14:43Async query execution
  9. 16:32Loading results into models
  10. 18:56Binding engine to models
  11. 20:43CRUD operations in GINO
  12. 22:28Handling relationships
  13. 25:43Summary and future of GINO
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.