NoSQL Data Modeling
Model data for document, key-value and wide-column stores from access patterns, decide when a NoSQL store beats a relational one, and extract its data for analytics.
4 objectives 6 steps about 140 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Compare document, key-value, wide-column and graph stores by query flexibility, consistency, scaling and operating cost, and pick one for a stated workload.
- Design a document schema from access patterns, choosing between embedding and referencing and adding indexes for the main queries.
- Design a wide-column or key-value table around partition and clustering keys that avoids hot and unbounded partitions.
- Extract documents into an analytical format, flattening nested fields and handling missing or drifting attributes explicitly.
Lesson plan
6 steps, about 140 min · 5 of 5 lessons available so far
- Four NoSQL Families and the Trade-offs They Make Concept · 20 min
- Access Patterns First: Modeling Documents Worked example · 30 min
- Partition Keys and Clustering in Wide-Column Stores Concept · 25 min
- Lab: One Workload, Two Data Models Lab · 30 min
- Lab: Flattening Nested Documents for Analytics Lab · 20 min
- Check: Choose and Defend a Data Store Knowledge check · 8 questions
Practise it
For a ride-hailing app, list its five main access patterns, model them in MongoDB (justifying each embed or reference) and as a Cassandra-style table with partition and clustering keys, then export a week of trips from the document store to Parquet with an explicit, flattened schema.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.