Saturday 29 December 2018

Thoughts on embedding vs referencing documents for MongoDB

I'm going through a Node course, and I'm covering referencing and embedding documents. I can see for something like a ticketing system, you would want "notes" embedded in a document because they are specifically tied to that ticket. However something like a "user" that submitted the ticket could be referenced. That way is the person gets married and changes their name, the ticket reflects the change.​This is my very simple way of looking at it, do any of you folks with real world experience have any guidance on this?​Kind regards, and happy holidays.

Submitted December 29, 2018 at 05:48PM by sma92878

No comments:

Post a Comment