Additionally, if you use scoped session, you should specify scopefunc. uwsgi.worker_id.
2014年7月4日金曜日、萧国翘(xiaost)<[email protected]>さんは書きました: > COOL~~~~ > > > > I guess this will work with uwsgi's support for gevent, but how would > > you plug it in SQLAlchemy? > > try create_engine(bla, blabla, blabla, waiter=gevent_waiter) in sqlalchemy > > > > > On Thu, Jul 3, 2014 at 10:30 PM, Damjan Georgievski <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > >> > I've just released mysqlclient-python 1.3.2 >> > >> > https://pypi.python.org/pypi/mysqlclient >> > >> > This is a fork of MySQL-python. >> > New feature introduced in 1.3.2 is asyncio+coroutine friendness. >> > >> > Here is example with gevent: >> > >> https://github.com/PyMySQL/mysqlclient-python/blob/master/samples/waiter_gevent.py >> >> I guess this will work with uwsgi's support for gevent, but how would >> you plug it in SQLAlchemy? >> >> >> >> -- >> damjan >> _______________________________________________ >> uWSGI mailing list >> [email protected] >> <javascript:_e(%7B%7D,'cvml','[email protected]');> >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >> > > > > -- > xiaoguoqiao > 18608007022 > -- INADA Naoki <[email protected]>
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
