Re: Slow view causing timeout errors

2009-01-13 Thread Adam
It doesn't need to be accessed in real-time, so you're totally right. I'm going to try a session key set by the loop as it iterates. That way ajax will know when the final iteration is done. Thanks! On Jan 13, 8:23 am, Roy wrote: > Is it dynamic data that needs to be

Re: Slow view causing timeout errors

2009-01-13 Thread Adam
The timeout is happening on the nginx that is hosting static content. I'm not entirely sure why, but I have figured out a way to properly handle the view. Instead of having ajax replace part of the page I'm just going to have it check a session key that I will have the loop update. I probably

Re: Slow view causing timeout errors

2009-01-13 Thread Roy
Is it dynamic data that needs to be accessed in real-time? If not, you could cache it in your own database (using a cron job), so that the view doesn't have to take too long. On Jan 13, 10:53 am, Adam Tucker wrote: > I am working on a site where a page is loaded which

Re: Slow view causing timeout errors

2009-01-13 Thread Daniel Roseman
On Jan 13, 2:53 am, Adam Tucker wrote: > I am working on a site where a page is loaded which replaces part of itself > with another view using a simple ajax replacement (the load funciton in > jQuery.) The view that is called iterates a loop anywhere from 3 to 10 times >

Slow view causing timeout errors

2009-01-12 Thread Adam Tucker
I am working on a site where a page is loaded which replaces part of itself with another view using a simple ajax replacement (the load funciton in jQuery.) The view that is called iterates a loop anywhere from 3 to 10 times before getting to a render_to_response. Unfortunately, the view pulls