by calpaterson · 6y ago · 0 comments
For what it's worth, I think people are using aiopg because it works with SQLAlchemy whereas asyncpg does not.
I kept the database driver the same because I'm testing sync vs async and not database drivers. I would be interested in testing asyncpg, particularly a performance claim is a big part of that library's documentation but another time.
uvicorn --port 8001 --workers $PWPWORKERS app_starlette:app --loop uvloop
The uvicorn docs should point out what a big difference uvloop makes.
If I'm not wrong, aiopg it's something not fully async, just because relais on the old driver.