I'm writing an application that gathers statistics of users across multiple social networks accounts. I have a collection of users and I would like to store the statistics information of each user.
Now, I have two options:
- Create a collection that stores users statistics documents, and add a reference object to each of the user documents that links it to the corresponding document in the statistics collection.
- Embed a statistics document in each of the users document.
Besides for query performance (which I'm less concerned about):
- what are the pros and cons of each of these approaches?
- What should I take into account if I choose to use references rather than embedding the information inside the user document?