Replies: 1 comment
-
|
Hey @Ivareh You don't need to use qdrant client with a context manager, the first connection is actually initialized on qdrant-client init |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I want to have connections to the database as short as possible, when needed in my application. In a FastAPI app, when I initiate client like this:
Does the connection open before running in route, or should I use it as a context manager like this:
Or maybe there is a better method than these two?
Beta Was this translation helpful? Give feedback.
All reactions