Embed-when and reference-when signals
standardintermediateThree signals point to embedding: read together, bounded, naturally owned by the parent. Three signals point to referencing: grows independently, shared across many parents, has its own lifecycle. Most relationships show a clear majority one way.
Think of it as
This is the same decision as the earlier embed-or-reference question, restated as two checklists instead of a single question — useful when a relationship does not obviously fall to one side. Count how many signals point each way rather than looking for one deciding factor.
What we're doing: Apply both checklists to two different relationships from the same order document to show they can land on opposite sides.
- 2
- All three embed signals point the same way here — this is the easy case.
- 6
- Referencing wins because the customer record is shared across many orders and updated on its own schedule, independent of any one order.
Why this works: The same document can hold both an embedded and a referenced relationship, because the two checklists are evaluated per relationship, not once for the whole document.
Applying the checklist to the whole document instead of per relationship
Wrong
Better
What you see: A document ends up either over-embedding (duplicating a widely-shared entity) or over-referencing (an extra query for data that was always read together).
Why: A single collection commonly holds several distinct relationships, and the embed/reference signals can point different ways for each one even within the same parent document.
Remember: Embed: read together, bounded, parent-owned. Reference: independent growth, shared, own lifecycle. Weigh signals per relationship, not per document.
See also: embed or reference decision · relationship cardinality strategies

