3 ms·
How well would it work with, say, PostgreSQL? Would you need to use async wrappers like aiopg in your views?
by zeemonkee3 10y ago
How well would it work with, say, PostgreSQL? Would you need to use async wrappers like aiopg in your views?
- ssahoo 10y agohttps://github.com/aio-libs/aiopg https://github.com/aio-libs/aiopg should work.
- akubera 10y agoFor optimal performance, yes use aiopg or equivalent (it looks like there is an asyncio sqlalchemy project which might be nice.) Any middleware may be a coroutine object, so it's as easy as `await res.render("whatever")` in an async function