Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 10 months ago
0
Follow
Hi there, we're now using PGVectorStore
Hi there, we're now using PGVectorStore
Inactive
0
Follow
k
kevingoed
10 months ago
Β·
Hi there, we're now using PGVectorStore and we're seeing that there's a lot of open connections to the postgres db. Do we need to close the connections somehow, has anyone every run into this issue?
L
k
8 comments
Share
Open in Discord
L
Logan M
10 months ago
I think I've seen warning about it, but tbh I haven't dove into it yet lol
L
Logan M
10 months ago
Not 100% sure how/where its happening
L
Logan M
10 months ago
since all the db connections are scoped
L
Logan M
10 months ago
Plain Text
Copy
with self._session() as session, session.begin(): ...
k
kevingoed
10 months ago
interesting, I'll have a look it might be some of our custom code π
k
kevingoed
10 months ago
but good to know that you dont specifically have to close it.
L
Logan M
10 months ago
Yea from my understanding, the
with ...
statement should be closing it
Similair to how
with open("file.txt", 'r') as f:
will close the file for you
L
Logan M
10 months ago
(but clearly with the warnings being printed, it's maybe not happening somewhere lol)
Add a reply
Sign up and join the conversation on Discord
Join on Discord