标签:
Data in MongoDB has a flexible schema. Collections do not enfoce document structure.
In the normalized data model, the address document contains a reference to the patron document.
If the address data is frequently retrivevd with name information, then with referencing, your application needs to issue multiple queries to resolve the reference. The better data model would to be embed the address data in the patron data, as in the following document:
标签:
原文地址:http://www.cnblogs.com/hotbaby/p/4867452.html