advancedMongoDB Schema Design — Embedding vs. Referencing
What is the denormalized-snapshot hybrid pattern, and when would you use it?
It embeds a copy of key fields from a referenced entity (e.g., a product's name and price at the time an order was placed) directly alongside a reference to the authoritative source. It's used when you want embedding's read speed for fields that rarely change historically, while keeping an independently updatable authoritative copy in its own collection.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full Databases Mastery library.
What is the denormalized-snapshot hybrid pattern, and when would you use it?