Performance problem when using composite index of Azure Cosmos DB for MongoDB

디엔소프트 DNSOFT 196 Reputation points
2021-01-14T07:28:40.567+00:00

I'm using Azure Cosmos DB's for MongoDB, but I'm trying to put a composite index in mongoose because I can't use the sort function without an index, but it's expected that the performance is degraded due to frequent updates at scale. Is there any way to recommend it?

Thank you in advance

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

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,631 Reputation points
    2021-01-19T06:36:55.58+00:00

    Hi @@디엔소프트 DNSOFT , thanks for your patience. Yes you are right that if we want to apply the sorting we need to index the fields/properties appropriately. However as per the verbatim from the article, there is no performance issue that we observe while the updates happen in the background.

    57995-image.png

    Please let us know if this helps or else we can discuss further on the same.

    ----------

    If answer helps, please 'Accept Answer' as this could help other community members looking for similar queries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.