Skip to main content

All Questions

0 votes
0 answers
260 views

How to design a cosmos DB to do efficient query on non-partition key as well

I am new to Cosmos DB and facing issue in designing my DB. I have a data similar to below structure { "userId": "64_CHAR_ID", "gpId": "34_CHAR_ID" ... ...
Raj Suvariya's user avatar
  • 1,664
11 votes
2 answers
4k views

Indexing the partition key in Azure Cosmos DB

Suppose I've the following data in my container: { "id": "1DBF704E-1623-4844-DC86-EFA729A5C048", "firstName": "Wylie", "lastName": "...
galbru's user avatar
  • 452
4 votes
1 answer
2k views

Cosmos DB: Query documents by time interval using partition key

How do I choose a partition key in such a way that I can efficiently query all my documents for a given time period? Background: I'm building an analytics tool for a chat application using Azure ...
OrangeTree's user avatar
1 vote
1 answer
216 views

Difference between partition key indicated in query expression and feedoptions in cosmos db

I'm calling "queryDocuments(String collectionLink, String query, FeedOptions options)" api in cosmos db for doing some sql query with partition key. I wonder where I should indicate the partition key, ...
Anonymous_coder's user avatar
0 votes
1 answer
52 views

Read Model Partition Key Strategy

I have a collection of documents that looks like the following: There is one document per VIN/SiteID and our access pattern is showing all documents at a specific site. I see two potential partition ...
Marco's user avatar
  • 2,473