Re: [sqlalchemy] SQLAlchemy + async

2017-09-05 Thread Fantix King
> > > Hence my question: what would > > happen if I try to use blocking Sqlalchemy ORM in an asyncio app? I > mean, I > > need async because of slow endpoints, for example doing HTTP requests to > 3rd > > parties. > > Yeah I would offload that work into a queue and separate the CRUD part >

Re: [sqlalchemy] SQLAlchemy + async

2017-09-02 Thread Mike Bayer
On Sat, Sep 2, 2017 at 6:34 AM, Zsolt Ero wrote: > After reading Mike's great blog post: > http://techspot.zzzeek.org/2015/02/15/asynchronous-python-and-databases/ and > SO answer: https://stackoverflow.com/a/16503103/518169 I wanted to use > gevent / sqlalchemy / psycopg2 /

[sqlalchemy] SQLAlchemy + async

2017-09-02 Thread Zsolt Ero
After reading Mike's great blog post: http://techspot.zzzeek.org/2015/02/15/asynchronous-python-and-databases/ and SO answer: https://stackoverflow.com/a/16503103/518169 I wanted to use gevent / sqlalchemy / psycopg2 / gunicorn in a new application. However I have immediately backtracked