Cosmos DB Table API Partition key queries are very slow

Andrei Corovei 1 Reputation point
2021-06-11T11:58:00.16+00:00

We migrated our application from Table Storage to Cosmos DB Table API.

After the migration, we discovered that queries against any collection that are only against Partition Key take a lot of time to run . For example this query:

104811-image.png

took 5 minutes to run and 5k RUs on the successful request but it generated lots of 429) while this query:

104679-image.png

ran in 0.695 miliseconds and request charge was 5.72 RUs.

104802-image.png

We tried several things on the indexing part (although, I thought indexing will work out of the box like Storage does).

![104715-image.png]4

Could someone explain this behavior?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,609 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,321 Reputation points
    2021-06-14T06:18:39.07+00:00

    @Andrei Corovei Welcome to Microsoft Q&A forums.

    5 minutes and 5K RU's to retrieve 2 records is definitely not an expected behavior even when you do not specify the RowKey.
    Are you seeing this consistently?
    What happens when you consume the same from a client sdk?


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.