On Sunday, April 22, 2018 at 7:23:45 PM UTC-4, Maurice Waka wrote:
>
> I solved the thread.local error by declaring the 
> rows=db(db.health).select() as a global object in my code.
>

That's OK in a model (but not at the top level of a module) if you really 
need it on every request, but wasteful otherwise.

Anthony

-- 
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