You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Data modelling in DynamoDB is fundamentally different from relational databases. Instead of normalising data and using joins, you denormalise and design your table around your access patterns. This lesson covers the key modelling strategies.
In a relational database, you design the schema first and then write queries. In DynamoDB, you reverse the process:
Relational: Schema → Queries
DynamoDB: Access Patterns → Key Design → Schema
Single-table design is the most powerful DynamoDB modelling technique. Instead of creating separate tables for each entity, you store all entities in a single table using structured partition and sort keys.
| Benefit | Description |
|---|---|
| Fewer round trips | Fetch related data in a single Query |
| Simpler operations | One table to manage, backup, and monitor |
| Transaction scope | Transactions work across items in the same table |
| Reduced costs | Fewer tables, fewer indexes |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.