2👍
✅
Django’s StreamingHttpResponse
can be much slower than a traditional HttpResponse
for small responses.
Try to shy away from using it if you don’t need to; the Django Docs actually recommend that “StreamingHttpResponse
should only be used in situations where it is absolutely required that the whole content isn’t iterated before transferring the data to the client.”
Source:stackexchange.com