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
DC
Daniel Cranney
The Overflow: 5 Tools for Developers Working with JSON
In the last edition of The Overflow - where we share all kinds of incredible mostly-open source tools we just couldn’t fit into the DevDigest - we looked at speedy file sharing . Well this time, we’re looking at five that make working with JSON a lit...
The Overflow: 5 Tools for Developers Working with JSON
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
DC
Daniel Cranney
Why Attend a Developer Event?
Modern software engineering moves too fast for documentation alone. Attending a world-class event is about shifting from tactical execution to strategic leadership. Skill Diversification: Break out of your specific tech stack to see how the industry...
Why Attend a Developer Event?

From learning to earning

Jobs that call for the skills explored in this talk.