Databases · Middle · Question 48 of 75

In MongoDB, when should related data be embedded in one document rather than referenced?

Explanation

Reference data that grows without limit (all comments of a popular post) or is shared by many documents. MongoDB documents are limited to 16 MB.

Further reading

Problem with a question

Databases · Middle · question 48

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz