It's some statistical data collected about the users of my application. (Anyway good joke :) Even with better hardware it's the same. I installed the app on one of company's ubuntu servers but it also gives "Read Timeout" error... Maybe a solution would be to put more filters so the data won't be that large and so it would eventually generate the pdf.
Thanks a lot for your time! On Apr 22, 5:18 pm, "[email protected]" <[email protected]> wrote: > 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 <[email protected]> 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, "[email protected]" > > > <[email protected]> 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 <[email protected]> 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, "[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 > > > > 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 > 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.

