are you collect the data from the telephone book? :) kidding, the only right way is to render it in the background.
i dont't think you can render it faster, only with better hardware. On Apr 22, 4:10 pm, Florin <florind...@gmail.com> wrote: > It takes about 10 sec to generate the data, but when calling > pisaDocument with the generated data it hangs and after a while it > gives timeout. > > On Apr 22, 4:59 pm, "ge...@aquarianhouse.com" > > > > <ge...@aquarianhouse.com> wrote: > > we say the whole thing takes 60 sec., how many sec. does it take to > > collect and how many to render? > > > On Apr 22, 3:54 pm, Florin <florind...@gmail.com> wrote: > > > > 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, "ge...@aquarianhouse.com" > > > > <ge...@aquarianhouse.com> wrote: > > > > The question is: where is the bottleneck, to collect the data or to > > > > generate the pdf??? > > > > > On Apr 22, 2:54 pm, Florin <florind...@gmail.com> 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 <jav...@guerrag.com> wrote: > > > > > > > On Thu, Apr 22, 2010 at 6:25 AM, ge...@aquarianhouse.com > > > > > > > <ge...@aquarianhouse.com> 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 django-us...@googlegroups.com. > > > > > > To unsubscribe from this group, send email to > > > > > > django-users+unsubscr...@googlegroups.com. > > > > > > 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 django-us...@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > django-users+unsubscr...@googlegroups.com. > > > > > 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 django-us...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > django-users+unsubscr...@googlegroups.com. > > > > 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 django-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > django-users+unsubscr...@googlegroups.com. > > > 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 django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > 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 django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > 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 django-us...@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.