cache.action

38 views
Skip to first unread message

Attilio Drei

unread,
Sep 17, 2019, 2:02:02 AM9/17/19
to web2py-users
hi, when i set a cache action  still web2py  continue to do queries to database for every call. ( select 1; commit)
is possible to set db to null or sqlite:memory when in cache mode ?

Massimo Di Pierro

unread,
Sep 17, 2019, 2:04:23 AM9/17/19
to web2py-users
No. That is why I am making py4web and it is 20x faster.

Attilio Drei

unread,
Sep 17, 2019, 8:48:46 AM9/17/19
to web2py-users
for information, using web2py with python3 and gunicorn/meinheld, i am able to do 1000 queries per second using a redis backend and 1 key seek., in this case i set db to sqlite:memory.

GUNICORN_CMD_ARGS=" --workers=6 --worker-class=meinheld.gmeinheld.MeinheldWorker"    python3  /..../web2py/anyserver.py -s gunicorn  --workers=6   -i 0.0.0.0 -p 8000


meno male , lo  testo subito...
Reply all
Reply to author
Forward
0 new messages