Skip to content

[Rule] Collocate related items in the same partition for single-partition transactions #171

Description

@sajeetharan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions