Update PostgresStore to support a connection pool #2457
tyler-ball
started this conversation in
Ideas
Replies: 1 comment
-
Pinging @bracesproul @eyurtsev since I saw yall making recent commits and the contributing doc said to tag a maintainer. I started an implementation of this at #2475 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Postgres for persistence in my project and I'm successfully using a connection pool like this:
But it looks like the PostgresStore does support a connection pool, only a connection. I like using the pool over the
.from_conn_string
because then I don't have to wrap all my FastAPI function implementations - I just let the PostgresSaver make connections whenever it needs them.I was going to look into updating the PostgresStore to support connection pool, copying the pattern from PostgresSaver, and your contributing policy said I should open a discussion first, so here I am! Thanks
Beta Was this translation helpful? Give feedback.
All reactions