> Thanks for comments.
>
> Currently, I do not want to use SQLAlchemy to import another library.
> So there is no other way?

It is nothing that requires specific server support. Just remember to open
the connection after each fork() (otherwise you will clobber the socket).

The @postfork decorator could help. Otherwise use --lazy-apps to
reinitialize the app for each worker.



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

Reply via email to