---
title: "How to Model an Insurance Policy Without Joining Dozens of Tables"
description: "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."
---

# How to Model an Insurance Policy Without Joining Dozens of Tables

[MongoDB](https://yomu.fyi/company/mongodb) · Nov 11, 2026

**Type:** Explainer

## Summary

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.

## Context

Insurance core systems traditionally store a single policy across dozens of relational tables, requiring many joins to reassemble the policy on every screen load. Manulife replaced over 500 core tables with one document per policy and reported strong developer approval. The post explains how to model insurance data in a document database like MongoDB.

## Approach / What changed

Model data around the policy lifecycle by applying the embed-or-reference rule: embed data that is part of something and always read alongside it (coverages, vehicles, event history inside the policy; reserves and payments inside the claim), and reference data that has its own lifecycle or is shared (customer, agent, product, claims from a policy). Use computed totals, schema versioning, and append-only history as supporting patterns.

## Takeaways

- Embed data that is always read alongside its parent (e.g., coverages inside a policy) and reference data with its own lifecycle or shared across many records (e.g., customer, agent, product).
- Use the outlier pattern for rare extreme cases: embed by default, and when a claim crosses a threshold, flip an overflow flag and store excess in a side collection.
- Shard claims by a hashed claim number, not by catastrophe event code, to avoid routing all surge writes to one server during an active disaster.

## FAQ

### How do I decide whether to embed or reference data?

Embed data that is part of something and always read alongside it, such as coverages inside a policy or reserves inside a claim. Reference data that has its own lifecycle or is shared across many records, such as a customer, agent, or product catalog.

### How do I handle a claim with dozens of attachments?

Use the outlier pattern: embed attachments by default, and when a claim crosses a threshold (e.g., 60 attachments after a hurricane), flip an overflow flag and store the excess in a side collection. This keeps the common case fast without penalizing the majority for the rare extreme.

### What shard key should I use for claims during a catastrophe?

Shard by a hashed shard key on the claim number to spread new claims evenly across servers. Do not shard by catastrophe event code, because during an active wildfire nearly all new claims share one code, routing all writes to one server and hurting intake throughput.

**Tags:** [Data Modeling](https://yomu.fyi/topic/data-modeling), [Document Database](https://yomu.fyi/topic/document-database), [Insurance](https://yomu.fyi/topic/insurance), [MongoDB](https://yomu.fyi/topic/mongodb)

- Source: [MongoDB](https://www.mongodb.com/company/blog/innovation/how-model-insurance-policy-without-joining-dozens-tables)
- Source URL: https://www.mongodb.com/company/blog/innovation/how-model-insurance-policy-without-joining-dozens-tables
- Ingested by Yomu: 2026-11-12T15:00:19.329Z

[Read original post](https://www.mongodb.com/company/blog/innovation/how-model-insurance-policy-without-joining-dozens-tables)
