Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/MongoDB
MongoDBeasy

Embedding vs referencing in MongoDB — when would you embed?

Tags
#modeling#embedding#referencing
Back to categoryPractice quiz

Answer

Embed when data is owned by the parent and is usually read together (one query, atomic update in one document). Reference when the related data is large, shared, or grows without bounds.

Related questions

MongoDB
Embedding vs referencing: when would you embed documents in MongoDB?
#mongo#schema-design#embedding
MongoDB
Embedding vs referencing in MongoDB schema design?
#embedding#referencing#schema-design
MongoDB
What is a document in MongoDB and how is data modeled?
#document#bson#modeling