A large query is causing the client (browser) to become unresponsive, 
because web2py doesn't return anything to the client until the controller 
function has completed.

It needs, instead, to return a chunked response header immediately, with 
the data to follow. From the controller I can return an iterator, which 
will send a chunked response, but doesn't help because the query still runs 
in the context of the controller function, before web2py can return 
anything.

If I defer the query (return an iterator that lazily runs the query), the 
query fails because the database connection is closed after the controller 
returns.

Is there any way to get web2py to return a header to the client before the 
db query is run?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to