The data is collected quickly. I generate a html with pagination to preview the results. If I trace the steps, I can see that the process hangs after the data is collected, at the line that calls the pisa.pisaDocument method to generate the pdf and write the generated bits in a buffer, which should then be sent to response. So the bottleneck is at pdf generation step.
On Apr 22, 4:25 pm, "[email protected]" <[email protected]> wrote: > The question is: where is the bottleneck, to collect the data or to > generate the pdf??? > > On Apr 22, 2:54 pm, Florin <[email protected]> wrote: > > > > > Thanks for the tips. > > > Is there any alternative to pisa that can process large amount of data > > to generate PDF files? > > > On Apr 22, 3:14 pm, Javier Guerra Giraldez <[email protected]> wrote: > > > > On Thu, Apr 22, 2010 at 6:25 AM, [email protected] > > > > <[email protected]> wrote: > > > > I your case i would put this task in queue or kind of a back process. > > > > +1 > > > > Queues are the way to go. in this case, i guess a "Ghetho Queue" > > > would be enough (just a DB table of 'pending tasks', a cron script > > > that processes them and a view that checks when it's done). if it > > > eventually becomes necessary, migrating to a 'real' queue manager > > > (RabbitMQ, memcacheq, whatever) gets much easier. > > > > -- > > > Javier > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Django users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/django-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

