Re: [Rails] Re: AJAX responses

2010-02-11 Thread Peter De Berdt
In my opinion, there's three ways to go about this: 1. Pregenerate reports in low traffic/low CPU usage times, like overnight. Since you are making monthly invoicing reports, the reports should stay the same anyway. When the user requests a certain range, assemble the cached pieces into on

[Rails] Re: AJAX responses

2010-02-10 Thread Marnen Laibow-Koser
Bob wrote: Does anyone know if it's possible to do multiple AJAX responses to a single request in Rails? I did some googling but didn't find anything extremely helpful. What do you mean? One HTTP request gets one response. That's the way the protocol works Thanks. Best, --  Marnen

Re: [Rails] Re: AJAX responses

2010-02-10 Thread Peter De Berdt
On 10 Feb 2010, at 17:18, Marnen Laibow-Koser wrote: Does anyone know if it's possible to do multiple AJAX responses to a single request in Rails? I did some googling but didn't find anything extremely helpful. What do you mean? One HTTP request gets one response. That's the way the

[Rails] Re: AJAX responses

2010-02-10 Thread Bob
I have a class that compares invoice totals for a month and calculates the dollars saved. The downside is it takes about 1 second per invoice per month to calculate so it's taking a considerable amount of time to display a complete report especially if you run it for a two year period (48