Forum OpenACS Q&A: Response to returning pages in "chunks"

Posted by Dirk Gomez on

Hmm, I think my question is not specific enough ;)

The problem at hand is...I have a big database query that takes some time. The user doesn't get to see anything till the tcl page has run through. Then ad_return_template is being invoked and the html is being generated.

I want that "one-off" thing to be broken down into chunks, ideally like this:

  • return some information
  • loop through the database query's result and return it in chunks
  • return some more information.