On 6/8/23 2:02 PM, Percy Masekwameng wrote:
> I have web app survey that collect data and generate a CSV file,
> I'm using railway to deploy my web app, running on 8GB RAM and each
> time I generate a file, the server goes down and display "Application
> failed to respond" the database table has over 2k records
> Is there any way to improve the performance so that I can be able to
> download large dataset from the web app?
>
If the issue is that you need to stream the CSV instead of batch it in
memory, the Django documentation addresses this directly:
https://docs.djangoproject.com/en/4.2/howto/outputting-csv/#streaming-csv-files
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fb67d24f-b3d5-f825-7938-3a62402f11de%40fattuba.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment