Loading…
Topic
Data Modeling
4 posts about Data Modeling. Every summary links to the original.
- 4 posts
- 2 companies
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
Data Modeling Best Practices for an Agentic CDP, Part 1: The Data Foundation
Part 1 of a two-part series describes data modeling for an Agentic CDP, covering steps from raw data in bronze to omnichannel activation. Identity resolution runs after the silver layer, where data is cleaned and normalized, and publishes a persistent canonical ID as the join key for gold. The gold layer comprises a customer entity table, separate 1:1 attribute tables for model scores and consent, and 1:many behavior tables such as orders and events at event grain. Agents take over matching and audience drafting while humans choose sources, review matches, and approve outputs, with consent and suppression rules stored as data for fast checks. Gold tables are flagged as batch or event, event tables are streaming tables, and engagement metrics land back in bronze with holdout groups to close the measurement loop.
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.
Modernize Your Insurance Data Models With MongoDB Relational Migrator
Legacy mainframe systems using COBOL and CICS still dominate core insurance functions, creating high maintenance costs and slow innovation due to data trapped in outdated 21-table relational schemas. This tutorial demonstrates how the document model simplifies insurance data models by refactoring the Object Management Group’s Party Role model, which defines how people and organizations are involved in policies, claims, and insurable objects. MongoDB’s Relational Migrator transforms the 21-table relational schema into a lean five-collection MongoDB model for Party, Policy, Claim, Litigation, and roles. The process covers connecting to PostgreSQL, replicating the Party Role model via psql and pg_restore, and using Relational Migrator’s schema design and data migration to refactor and migrate data. After migration, insurers gain faster product launches, swift regulatory adaptation, and enhanced customer experiences through a modernized data infrastructure.
Data Modeling and Schema Design for MongoDB Search Part 2: Use Cases and Patterns
The post presents best practices for data modeling and schema design in MongoDB Search, covering use cases and patterns such as the Entity Pattern to guide developers in structuring collections for effective search. It emphasizes that searchable items, like movies, cast members, or genres, should be modeled as first-class documents in their own collections rather than as nested structures or ambiguous attributes. The Entity Pattern addresses ‘find anything anywhere’ and as-you-type suggestions by representing all domain entities as documents in a specialized collection with stable identifiers and a type field for filtering. The Attribute Pattern is explicitly discouraged for search because its key-value structure prevents type-sensitive field mapping, making it better to model attributes as straightforward fields. The post details a multi-indexing strategy on the name field that applies left-edge, phonetic, shingled, and language-agnostic analysis to enable flexible matching and relevancy scoring, with optional type-specific metadata nested in sub-documents.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.