pinecone-io / pinecone-python-client

The Pinecone Python client
https://www.pinecone.io/docs
Apache License 2.0
306 stars 80 forks source link

Wire up pool_threads config #258

Closed jhamon closed 10 months ago

jhamon commented 10 months ago

Problem

We need to expose the pool_threads config in the new Pinecone constructor. This config property is ultimately used by the ApiClient class (see here), which is generated by the OpenAPI python generator. It is only used when performing operations over REST using the async_req=True param.

Solution

Add a property and wire it up with the underlying ApiClient object and Index constructor.

Type of Change