'How to optimize the downlaod big file problem in Django?
My Django project gives a download interface as follows:
def download_item_vector(request):
return HttpResponse(np.load('item_vector.npy'))
I want to return a big numpy array to the client. But it is very slow. Is there any good idea to do that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|