You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/custom-partitioning-analytical-store.md
+27-26Lines changed: 27 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,44 +78,45 @@ Similarly, if you configured [customer-managed keys on analytical store](how-to-
78
78
You could use one or more partition keys for your analytical data. If you are using multiple partiton keys, below are some recommendations on how to partition the data:
79
79
-**Using composite keys:**
80
80
81
-
Say, you want to frequently query based on Key1 and Key2.
81
+
Say, you want to frequently query based on Key1 and Key2.
82
82
83
-
For example, "Query for all records where ReadDate = ‘2021-10-08’ and Location = ‘Sydney’".
83
+
For example, "Query for all records where ReadDate = ‘2021-10-08’ and Location = ‘Sydney’".
84
84
85
-
In this case, using composite keys will be more efficient, to look up all records that match the ReadDate and the records that match Location within that ReadDate.
85
+
In this case, using composite keys will be more efficient, to look up all records that match the ReadDate and the records that match Location within that ReadDate.
Please note that it's not efficient to now frequently query based on "ReadDate" and "Location" filters together, on above partitioning. Composite keys will give
Please note that it's not efficient to now frequently query based on "ReadDate" and "Location" filters together, on above partitioning. Composite keys will give
119
+
better query performance in that case.
119
120
120
121
## Limitations
121
122
@@ -158,10 +159,10 @@ Yes, the partition key for the given container can be changed and the new partit
158
159
159
160
Yes, you can specify multiple partition keys on the same partitioned store as below:
0 commit comments