Taking Django's ORM Async
summary
Django plans a staged conversion of the ORM to hybrid async: first user-facing async variants for model/manager methods (name-spaced separately, e.g. .a‑style or get_async), then async-aware query internals, then optional native adapters. Current tooling uses thread pools and sync_to_async wrappers so most work stays threaded today; psycopg2 remains synchronous while async Postgres drivers mature. Expect forced changes like select_related required for implicit FK access and hard limits such as transactions may not cross async/sync thread boundaries.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:42About me
- 1:30Async Views
- 3:10Phases
- 6:08Async Limitations
- 7:49Async Functions
- 9:44Async Access
- 12:43Async Iter
- 14:08The Plan
- 18:53Conclusion
related talks
21mIs Django async yet?
45mJust Add Await: Retrofitting Async Into Django
32mAsynchronous Django: Unlocking the Power of Async Programming
40mTaking Django Async
01h 10mJust Add Await: Retrofitting Async Into Django
27mTaking Django Async
40mOptimize Your Database Operations with Asynchronous Processing
26mSync or async? Feel the magic of coroutines and the event loop in Django
