---
title: "Document Database"
description: "1 posts about Document Database, summarised, each linking to the original."
---

# Document Database
> 1 posts about Document Database, summarised, each linking to the original.

## Articles

### [How to Model an Insurance Policy Without Joining Dozens of Tables](https://yomu.fyi/post/how-to-model-an-insurance-policy-without-joining-dozens-of-tables.md)
- Company: [MongoDB](https://yomu.fyi/company/mongodb.md)
- Published: Nov 11, 2026
- Type: Explainer

Insurance policies are naturally nested business objects, yet most core systems slice them across dozens of relational tables that must be joined on every screen load. A document database like MongoDB lets you store one policy as a single nested document, but the critical design decision is whether to embed or reference each piece of data. The rule is to embed data that is always read alongside its parent, such as coverages inside a policy, and to reference data with its own lifecycle, such as a customer or agent. For outlier cases like a hurricane claim with 60 attachments, the outlier pattern embeds by default and overflows to a side collection only when a threshold is crossed. Sharding by a hashed claim number spreads write load evenly, avoiding the trap of sharding by catastrophe event code, which would route all surge claims to one server.
