MongoDB Data Model Quiz | Question 4

Last Updated :
Discuss
Comments

When is it more appropriate to use referencing instead of embedding in MongoDB?

For one-to-one relationships where the related data is small and frequently accessed together.

When you want to avoid making multiple queries to retrieve related data.

When you have many-to-many relationships or large sub-documents.

When you need to perform atomic updates on the parent and related documents simultaneously.

Share your thoughts in the comments