Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to support connection pooling in milvus-java-sdk?(如何在milvus-java-sdk中支持连接池?) #919

Open
NikaKingLuffy opened this issue Jun 5, 2024 · 1 comment

Comments

@NikaKingLuffy
Copy link

How can milvus-java-sdk's milvusClient support connection pooling? I noticed that the Python version of milvus-sdk can simply configure multiple connections by specifying an alias, but I couldn't find a similar feature in the java-sdk. If the java-sdk does not currently support connection pooling, could you please provide some ideas on how to implement this feature?

中文:请问milvus-java-sdk的milvusClient如何支持连接池?我注意到Python版本的milvus-sdk可以通过指定alias来简单配置多个连接,但在java-sdk中没有找到相关功能。如果当前java-sdk暂时不支持连接池,请问有实现该功能的思路吗?

Thank you for your help!感谢回复!
@yhmo
Copy link
Contributor

yhmo commented Jun 7, 2024

Java sdk doesn't have connection pool. Each MilvusClient object maintains a long connection.
You can use a Map<String, MilvusClient> to build your simple connection pool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants