5 ms·
Since ultimately anything you build in Django will eventually go into the ORM layer, it won't become anything unless the ORM is fully async. This release brings
by Chiron1991 4y ago
Since ultimately anything you build in Django will eventually go into the ORM layer, it won't become anything unless the ORM is fully async. This release brings the async API to it, but:
> Note that, at this stage, the underlying database operations remain synchronous
That kinda defeats the whole purpose of an ASGI app.
- tecleandor 4y agoBut you could use it for load not tied to database, isn't it? Like CPU, IO or network bound stuff...
- aynyc 4y agoYou don't use async for CPU. Python async is actually asyncio, so I/O and network such as calling external API, etc.. It'll make integration much easier to reason about.
- 0xDEFACED 4y ago>That kinda defeats the whole purpose of an ASGI app. Unless I’m missing something, wouldn’t an async ORM provide significant benefit for apps with an internet-based DB connection? I would think the underlying DB ops would be much faster than sending a request and waiting on a response.