5 ms·
This isn’t exactly true. The Django ORM can be used with care in the async views found in FastAPI and Django (see sync_to_async and run_in_threadpool helpers).
by bryanh 5y ago
This isn’t exactly true. The Django ORM can be used with care in the async views found in FastAPI and Django (see sync_to_async and run_in_threadpool helpers).
Plans exist to make the Django Queryset async, so it’ll be exciting when that day comes!
- samwillis 5y agoVery true, and I have been following this pull request implementing Async Queryset with interest: https://github.com/django/django/pull/14843 https://github.com/django/django/pull/14843 So far they are only going down the the queryset level, it then uses a thread pool for the db connector, next job would be to support async db connections.