Hello,

I have what we'll call a "legacy" application that generates a single page 
report based on a large bunch of EOs.  There's also some hairy nested 
subcomponents, and (simple GET) calls to a third party chart API.  In short, 
the page takes a long time to render, but it doesn't appear to be database 
bound, with profiling showing that it's spending 100% of its time in 
appendToResponse.  

If there was a budget to re-do this entire report the Right Way, and do the 
heavy lifting in some background tasks, I would do that.  But let's assume 
there's not (because there's not).  As a quick and dirty fix, what I want to be 
able to do is generate the entire HTML page content in the background, and then 
hand that back when it's complete.  I'm pretty close—I have a Callable that I'm 
sticking in a CCAjaxLongResponsePage.  I generate the report page in its call() 
method.  What I can't work out how to do is tell that page to "pre-render" 
itself.  Calling generateResponse() and appendToResponse() on the report page 
both work in as far as they clearly spend the rendering time I'm expecting 
before returning from call(), but then my IERXPerformWOActionForResult 
controller class hands the page back from its performAction() method, the 
rendering starts again from scratch on its way to the browser.  Is there a way 
to achieve what I want here?  (Is there a completely different idiom I've 
overlooked?)

Again, please suspend your disbelief that I'm doing this at all.  It's a 
cost-benefit issue.  I simply cannot re-write this report page properly.  I 
need a quick and dirty solution.


-- 
Paul Hoadley
http://logicsquad.net/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to