Skip to content

Commit 0ca46e9

Browse files
authored
Merge pull request #95004 from soferreira/patch-2
Add note to 'Choose a partition key' section.
2 parents ecf7d47 + e81019f commit 0ca46e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/cosmos-db/partitioning-overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ For **all** containers, your partition key should:
102102

103103
If you need [multi-item ACID transactions](database-transactions-optimistic-concurrency.md#multi-item-transactions) in Azure Cosmos DB, you will need to use [stored procedures or triggers](how-to-write-stored-procedures-triggers-udfs.md#stored-procedures). All JavaScript-based stored procedures and triggers are scoped to a single logical partition.
104104

105+
> [!NOTE]
106+
> If you only have one physical partition, the value of the partition key may not be relevant as all queries will target the same physical partition.
107+
105108
## Partition keys for read-heavy containers
106109

107110
For most containers, the above criteria is all you need to consider when picking a partition key. For large read-heavy containers, however, you might want to choose a partition key that appears frequently as a filter in your queries. Queries can be [efficiently routed to only the relevant physical partitions](how-to-query-container.md#in-partition-query) by including the partition key in the filter predicate.

0 commit comments

Comments
 (0)