Stanimira Vlaeva

NoSQL Data Modeling for Front-end Developers

Is data duplication an anti-pattern or a strategic choice? Learn when to embed versus reference data for maximum NoSQL performance.

NoSQL Data Modeling for Front-end Developers
#1about 3 minutes

Why data modeling matters for front-end developers

Understanding NoSQL data modeling helps improve application performance, developer productivity, and reduces overall costs.

#2about 7 minutes

Understanding document databases and flexible schemas

NoSQL document databases like MongoDB store data in BSON documents grouped into collections with flexible schemas, unlike rigid SQL tables.

#3about 6 minutes

Strategies for modeling one-to-many relationships

Model one-to-many relationships using either embedding to store related data within a single document or referencing to link separate documents via IDs.

#4about 6 minutes

Choosing a strategy based on relationship cardinality

Use embedding for one-to-few relationships and referencing for one-to-zillions relationships to avoid oversized documents and performance issues.

#5about 2 minutes

Modeling standard one-to-many relationships

Decide whether to embed or reference by determining if the related data constitutes a separate logical unit that needs to be queried independently.

#6about 6 minutes

Optimizing queries with the Extended Reference Pattern

Combine referencing with embedding minimal, frequently needed data to optimize critical queries and avoid multiple lookups.

#7about 5 minutes

Managing data duplication and staleness

Embrace necessary data duplication for historical accuracy and manage staleness by using batch updates with MongoDB Change Streams.

#8about 9 minutes

Key principles and resources for data modeling

Effective data modeling is driven by application use cases, relationship cardinality, and the identification of critical queries.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

From learning to earning

Jobs that call for the skills explored in this talk.