Currently, the DownloadView operates as a sync view. It's very possible (and much more efficient) to do everything async.
File reading will have to be done via aiofile in order to not break the ASGI event queue though. After this change, Django versions will need to be limited to 3.1+
Currently, the DownloadView operates as a sync view. It's very possible (and much more efficient) to do everything async.
File reading will have to be done via
aiofilein order to not break the ASGI event queue though. After this change, Django versions will need to be limited to 3.1+