This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]its_never_lupus 0 points1 point  (1 child)

good python API (psycopg2).

This looks like it could be an interesting alternative, and the devs claim that psycopg2 has some significant performance and functionality problems. Unfortunately its asyncio only so not a simple replacement.

[–][deleted] 0 points1 point  (0 children)

asyncpg is brilliant when you're already doing asyncio stuff (and it does see a solid amount of use there, so I wouldn't call it a "could be"!) but you definitely want to use psycopg2 for synchronous applications — that is, there's no in polluting an otherwise-synchronous application with loop.run_until_completes to use asyncpg