mongodb: use nested document or separate collections with references
问题 I'm just starting with mongoDB. I have to store user data. For each user there will be added a small data record (not more than 500 Bytes) each day or updated some (most of the time not more then 10) of them. Now my question is, should I model this as a Collection of users with the data records embedded in each user document, or having a user collection and a data record collection with a reference from each data document to the user document? 回答1: It all depends on the use case - like nature