Loading…
Topic
Document Database
1 post about Document Database. Every summary links to the original.
- 1 post
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
How to Model an Insurance Policy Without Joining Dozens of Tables
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.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.