I have to modelize my data in a MongoDB database. My data are posts and comments, so the approachs I have thought are two:
1 collection of status with the comments embedded in each status
1 collection of status and 1 collection of comments
Consider that, from the user experience side, the user sees a list of status, and he just sometimes asks for seeing the comments of a given status. Consider also that the user could ask to see the comments of a given user: if the comments are embedded in statuses it could be more expensive to retrieve these information.
Which solution do you suggest?
Thank you!