Performance issue on CosmosDB for MongoDB

Sanjay Mange 5 Reputation points
2024-07-04T07:54:19.1266667+00:00

I am experiencing performance issue with CosmosDB for MongoDB (RU), when executing a query on a collection containing 300,000 documents. The query takes 43 seconds to execute on CosmosDB, whereas on my local MongoDB setup, it only takes 411 ms. Both env having the same data and same indexes + i have executed other queries also to evaluate and compare the performance and i am seeing significant performance difference. Additionally CosmosDB is on DEV environment so there is no traffic on the server.

What could be causing this significant performance difference ?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,520 questions
{count} votes