3 ms·
Or when accidentally some blocking database driver is used, even when django's ORM is async, a query with mongodb's driver is not async. Or just the filesystem.
by BozeWolf 4y ago
Or when accidentally some blocking database driver is used, even when django's ORM is async, a query with mongodb's driver is not async. Or just the filesystem... This harms performance badly, especially if the idea was to run only a few threads.
Other than that, it has benefits too! :-)
- mrmikardo 4y agoAnd indeed, there's an important caveat in the Django 4.1 docs; Note that, at this stage, the underlying database operations remain synchronous, with contributions ongoing to push asynchronous support down into the SQL compiler, and integrate asynchronous database drivers.... https://docs.djangoproject.com/en/4.1/releases/4.1/#asynchronous-orm-interface https://docs.djangoproject.com/en/4.1/releases/4.1/#asynchro...