Replies: 1 comment 2 replies
-
There is a bug when using When too many connections hits the database it throws this error:
I did quite a bit of research and this can be resolved by defining a pool connection for and again here in I have looked at the Databases documentation, but haven't found a way to directly access asyncpg to create such pool. Thanks |
Beta Was this translation helpful? Give feedback.
-
If I want to create a connection pool for
asyncpg
like thisawait asyncpg.create_pool(database="dbname",
user="username",
password="dbpw",
max_inactive_connection_lifetime=3)
How do I persist and utilise it from within the databases wrapper?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions