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

Related Articles

View all articles
CH
Chris Heilmann
Dev Digest 136 - No JS(on) of mine
News and ArticlesDouglas Crockford is our featured video, so let's talk about evolving JavaScript and all things JSON. Judicious JSON explains all the weird things in it, you can learn why it can be incredibly slow, people wonder what even is a JSON ...
Dev Digest 136 - No JS(on) of mine
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.