On 15 oct, 13:29, David Reynolds <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the requirement to output a lot of data (17,000 rows) as a
> CSV. I am using the templated system as required in the docs [0]. The
> generation of the CSV seems to be taking a lot of time to do (about 5
> + minutes).
>
> Are there any ways I can tune this to make it run a bit quicker?

Did you profile to spot where the bottleneck really is? Not tested but
here are a couple links on the topic:
http://www.djangosnippets.org/snippets/186/
http://code.djangoproject.com/wiki/ProfilingDjango

Also and out of curiousity, is there a reason you didn't use the csv
module solution ?
http://docs.djangoproject.com/en/dev/howto/outputting-csv/#using-the-python-csv-library


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to