Basic performance checklist
- Switch to a cloud environment. For example: EC2, GCE, Google Colab, GCP AI Platform Notebook, or SageMaker Notebook. If you experience slow uploads or high query latencies, it might be because you are accessing Pinecone from your home network.
- Deploy your application and your Pinecone service in the same region. Contact us if you need a dedicated deployment.
- Reuse connections. We recommend you reuse the same
pinecone.Index()
instance when you are upserting and querying the same index. - Operate within known limits.
How to increase throughput
To increase throughput (QPS), increase the number of replicas for your index. Example The following example increases the number of replicas forexample-index
to 4.
Using the gRPC client to get higher upsert speeds
Pinecone has a gRPC flavor of the standard client (installation) that can provide higher upsert speeds for multi-pod indexes. To connect to an index via the gRPC client:Python
Python