I don't know what this means. Also, I can't find docs for LOAD().


On Thursday, December 3, 2015 at 2:23:54 PM UTC-8, Massimo Di Pierro wrote:
>
> yes and no. You need a controller that returns tha page and then you need 
> to request the data via ajax or via a LOAD(... ajax=True) helper.
>
> On Thursday, 3 December 2015 15:33:04 UTC-6, Brian Craft wrote:
>>
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to