Hacker News new | ask | show | jobs
by zeemonkee3 3701 days ago
How well would it work with, say, PostgreSQL? Would you need to use async wrappers like aiopg in your views?
2 comments

For 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