Was your issue resolved? I am having a similar problem. I am rendering a PDF document and it takes forever. Not sure why?
On Monday, March 29, 2010 8:21:47 AM UTC-7, serjant wrote: > > Hi all. > > Can somebody help me and point me to solving the following problem: > > 1. I am writing an application where I render the needed information > in the XML file (to be more specific GeoRSS) > 2. I am generating the GeoRSS with the means of the GeoAtom1RSS django > class, and passing it to HttpResponse in this way: > > response = HttpResponse(mimetype='application/atom+xml') > geoFeed.write(response, encoding) #geoFeed is the generated GeoRSS > return response > > So the problem is time rendering of this XML file in browser. When I > want to see the generated RSS or XML in borwser, then the rendering is > too slow, takes at least 25-40 seconds. > I wrote a TestCase, where i found that the generator is not to blame > at all, cuz selecting data from the database and generating GeoRSS > with it takes 2-3 seconds maximum (avg: 1.5 seconds) in case the data > is so huge. > By switching the mimetype to text/html, the performance was really > good and stopped at 3 seconds of the rendering. > > Is there any way to increase the speed of the GeoRSS or XML rendering > with HttpResponse? > Is that a known issue? > > Thanks in advance > David > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/seTzi7esW0cJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.