utilery
utilery copied to clipboard
asyncio?
It may help to have SQL requests to be run in //.
https://github.com/aio-libs/aiopg
http://techspot.zzzeek.org/2015/02/15/asynchronous-python-and-databases/
I have used your package as a base for an asyncio / aiohttp / aiopg implementation over at: https://github.com/shongololo/aiovectortiler
The changes were chaotic and extensive so I've split it to a new project rather than trying to merge back into utilery.
Still pending completion of the new testing to accommodate the asyncio context.
Interesting. Have you benchmarked? We've made some tests recently, and our conclusion is that the ratio I/O Bounds / CPU bounds is not balanced enough to cancel the coroutines overhead. I'm currently working on a switch to Falcon + asyncpg (which should worth it anyway because it seems faster than psycopg2 by itself). cc @magopian
ah that's interesting. No benchmarks yet.