See And Configure Maximum Connection pool

Hi team, I am looking forward to examine and. configure the Connection Pool
I tried the below approach , is that right ? or any other way to do that?
_ip = “http://localhost:8081

conn_config = ConnectionConfig(session_pool_connections=2,session_pool_maxsize=2)

config_ = Config(connection_config=conn_config)

client = weaviate.Client(ip,additional_config=config)

Hi!

That seems right. Here is the docs for it:
https://weaviate-python-client.readthedocs.io/en/stable/weaviate.html#weaviate.ConnectionConfig

Thank you for your time @DudaNogueira

1 Like