2 ms·
No, sorry, did have it right but wasn't clear in my sentence: Full support for Django and particularly it’s ORM (hard to do with FastAPI as the Django ORM is n
by samwillis 5y ago
No, sorry, did have it right but wasn't clear in my sentence:
Full support for Django and particularly it’s ORM (hard to do with FastAPI as the Django ORM is not yet async and can’t be used with FastAPI)
Will edit to make clear.
- bryanh 5y agoThis 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.