I   want   to   create   global  variable  (list  or  dic  object)  at
init_proc, when uwsgi starts it
will  be  populated from database with data, and all processes will use it only 
as
READ  ONLY  object instead of hiting DB, but I want listen postgresql for 
NOTIFY event, and
repopulate this variable with new data from database when it's changed.

What  is  the most RIGHT way to do it, if I don't want to reload uwsgi
every time database is updated?

P.S.: I'am using uwsgi in async mode.

Thank you


_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to