[web2py] Keeping objects between requests

2020-04-06 Thread Val K
You can save any object in the module or current, but if you use more than one worker you will have independent instance of that object per worker -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/

[web2py] Keeping objects between requests

2020-04-05 Thread Joel Samuelsson
I'm using cassandra as a database with web2py and would like to keep the cassandra session between requests to reduce session recreation and lower latencies. Is this a bad idea? And how would I do it? Any tips appriciated! -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio