this scenario, users can comment on images, articles, and other resources. All comments are included in the comment set. If you only use Manual References, I cannot tell which type of resources the comment belongs to, pictures? Article ?. So we have DBRef.
DBRefFormat: {$ ref:
, $ Id:
, $ Db:
} $ Ref: Set Name; $ id: referenced id; $ db: Database Name; optional parameter. It can be seen that the structure of DBRef is more complex than that of Manual References, which occupies a l
MongoDB Data Link Modeling
The data in MongoDB is very flexible, and the collection does not require a uniform structure for documents. However, seriously considering the data model is still very important, because it will affect
article information, first in the Post collection to find out the article, and then in the user collection to find out all the users information. But if there is such a scene: Users can comment on pictures, articles and other resources, all the comments are placed in the comment collection, if you just use manual References, it is not clear what kind of resources the comment is, picture? Article?. So with the dbref.form of Dbref:{$ref: $ref: Collection name; $id: Reference ID; $db: database nam
The data in MongoDB is very flexible, and the collection does not require a uniform structure for documents. However, seriously considering the data model is still very important, because it will affect the application
The data in MongoDB is very flexible, and the collection
Whether it is an enterprise information system or a Web site, various sizesProgramThe original functions are data operations. It can be seen that a group's various requirements for some data have created one program after another, or software systems.
Looking back, we started to deal with data from the very beginning. What should we do first when a new project
industry, so there will be different companies targeting a specific industry model. For different industries, the same company also has different models, depending on the different business characteristics of different industries.
For example, the tdwm model of IBM contains the following nine concepts:
Figure 1. tdwm conceptual model of IBM
Many may ask why your model has nine concepts, not ten, and 11? What is the basis of your data warehouse model
Discussion on data modeling methods in data warehouse construction
The main content of this article is not to introduce some data models of the existing popular main industries, but to share some of my experiences in
Https://edu.hellobi.com/course/54High-quality Database modeling 1-significance1. The concept and significance of the data modeldikw--(data) information (information) knowledge (knowledge) wisdom (Wisdom), I understand that information is obtained through data, knowledge is gained through information, and wisdom is gene
business dimension information for integrated integration, this situation is more appropriate for generating surrogate keys to master keys.
Summary
The construction of the dimension table seems relatively simple, in most cases the business library will be directly, but in addition to the different levels of the dimension of Redundancy (Star model), but also need to grasp the details of the following dimensions of the construction of attention, after all, the dimension of errors will
= db.products.findOne({catalog_number: 1234}); // Fetch all the Parts that are linked to this Product> product_parts = db.parts.find({_id: { $in : product.parts } } ).toArray() ;The advantages and disadvantages of this modeling method are also obvious:
Advantage: Parts exist as independent documents. You can perform independent operations on a part, such as querying or updating.
Disadvantage: As shown above, you must query it twice to find informat
TurnThis blog post is translated from:http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1?mkt_tok= 3rkmmjwwff9wsronsq7ldu%2fhmjteu5z14uusukgxhokz2efye%2blihetpodcmtcvnm7zydbceejhqyqjxpr3fldcn0tjurhtrcw%3d%3dNote: This translation is not strictly translated, but is expressed as clearly as possible based on the understanding of the original. If you have any questions or concerns, please refer to the original.Many f
This blog is translated from:
Http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1? Mkt_tok = 3RkMMJWWfF9wsRonsq7Ldu % 2FhmjTEU5z14uUsUKGxhokz2EFye % 3D % 3D
Note: This translation is not strictly translated. It is only based on the understanding of the original article and can be clearly expressed as much as possible. If you have any questions or problems, refer to the original article.
Many people who have just
Tag: Person obj res produces object mbed SQL friend arrayThis blog post is translated from:http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1?mkt_tok= 3rkmmjwwff9wsronsq7ldu%2fhmjteu5z14uusukgxhokz2efye%2blihetpodcmtcvnm7zydbceejhqyqjxpr3fldcn0tjurhtrcw%3d%3dNote: This translation is not strictly translated, but is expressed as clearly as possible based on the understanding of the original. If in doubt or inappr
Label:Good writing, very detailed analysis of different scenarios of the different models This blog post is translated from: http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1?mkt_tok= 3rkmmjwwff9wsronsq7ldu%2fhmjteu5z14uusukgxhokz2efye%2blihetpodcmtcvnm7zydbceejhqyqjxpr3fldcn0tjurhtrcw%3d%3d Note: This translation is not strictly translated, but is expressed as clearly as possible based on the understanding of
This blog post is translated from:http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1?mkt_tok= 3rkmmjwwff9wsronsq7ldu%2fhmjteu5z14uusukgxhokz2efye%2blihetpodcmtcvnm7zydbceejhqyqjxpr3fldcn0tjurhtrcw%3d%3dNote: This translation is not strictly translated, but is expressed as clearly as possible based on the understanding of the original. If you have any questions or concerns, please refer to the original.Many frien
Tags: des Lucene style blog http io ar os useOriginal from " NoSQL Data Modeling techniques ", compiled by the cool shell net Chenhao NoSQL Data Modeling Technology ". After reading this article, you may feel a little bit about NOSQL data structures. My feeling is that the r
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.