3 ms·
the psycopg2 driver for PostgreSQL supports an async mode which uses PostgreSQL's full blown non-blocking API, this is what I used when I did my tests and might
by zzzeek 6y ago
the psycopg2 driver for PostgreSQL supports an async mode which uses PostgreSQL's full blown non-blocking API, this is what I used when I did my tests and might be what was used here. There is also the asyncpg driver that is native to PG's non-blocking API. PG is the one database that does lend itself to async because it has a fully non-blocking client library available.
https://www.postgresql.org/docs/12/libpq-async.html https://www.postgresql.org/docs/12/libpq-async.html
https://www.psycopg.org/docs/advanced.html#green-support https://www.psycopg.org/docs/advanced.html#green-support
https://github.com/MagicStack/asyncpg https://github.com/MagicStack/asyncpg