Tornado + SQLAlchemy non-blocking DB calls -


i'm relatively new application development here goes nothing.

i've been working on project employs use of tornado server , sqlalchemy's orm database management/access (using postgres in end).

at outset of project hadn't considered possibility using sqlalchemy prevent me taking advantage of tornado's async features (since sqlalchemy's database calls apparently 'block' thread).

do have suggestions how implement async-compatible setup tornado+sqla+postgres?

take @ aiopg - https://github.com/aio-libs/aiopg

it python 3.4 asyncio adapter postgres includes sqlalchemy support. haven't tried myself yet, found while looking async libraries postgres , tornado. using momoko, supplies raw psycopg2 layer.

remember latest version of tornado supports asyncio, asyncio libraries work tornado.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -