How to do bulk query operations on Cosmos DB using gremlin API


Author: Apoorva Agrawal

Originally Sourced from: https://stackoverflow.com/questions/66063247/how-to-do-bulk-query-operations-on-cosmos-db-using-gremlin-api

We want to perform bulk (millions of low-cost) query/read operations on a graph that we have in Cosmos DB using the Gremlin API in .NET C#. What is the best way to do so?

We know about BulkExecutor Library which only supports Bulk Import and Bulk Update operations. Is there something similar for Bulk Query/Read operations?

Currently, I am using a Gremlin.Net.Driver, GremlinClient (https://docs.microsoft.com/en-us/azure/cosmos-db/create-graph-dotnet) to fire queries. However, this driver is very slow compared to the BulkExecutor libraries BulkImport operations.