I understand the difference between embedded and referenced relationships in mongodb. By why do you need them in the first place?
I understand the difference between embedded and referenced relationships in mongodb. By why do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MongoDB documentation has a section on this including a discussion on “why would I not want to embed this object?”
http://www.mongodb.org/display/DOCS/Schema+Design
Sometimes it’s a question of the maintenance effort required to embed copies in each document, sometimes it’s simply impossible to embed because of the limits on document sizes.