Data
Parallel queries
There are many approaches to perform parallel queries in your application, from using the Python SDK to making REST calls. Below is one example of an approach using multi-threaded, asynchronous requests in Python. For guidance on using asyncio
for single-threaded, asynchronous requests in Python, see Asyncio support.
This example assumes the following:
- You have a 1536-dimension serverless index called
example-index
. - You have the Pinecone Python SDK and
concurrent.futures
andnumpy
packages installed.
Was this page helpful?