A design-level rule about structuring your data so that items that are frequently read/written together share the same partition key. This enables:
- Transactional batch operations (atomicity)
- Single-partition queries (lowest RU cost)
- Avoiding fan-out reads
Distinct from our existing partition rules which focus on cardinality, hotspots, and size limits — this one is about the design principle of colocation.
Category: \partition-\ Partition Key Design
Impact: Critical
Suggested file: \skills/cosmosdb-best-practices/rules/partition-colocation.md\
References:
This is a good first issue! Follow the Contributing Guide and use the rule template to get started.
A design-level rule about structuring your data so that items that are frequently read/written together share the same partition key. This enables:
Distinct from our existing partition rules which focus on cardinality, hotspots, and size limits — this one is about the design principle of colocation.
Category: \partition-\ Partition Key Design
Impact: Critical
Suggested file: \skills/cosmosdb-best-practices/rules/partition-colocation.md\
References:
This is a good first issue! Follow the Contributing Guide and use the rule template to get started.