免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Embedding data in documents
- Welcome. In this video, you'll learn about how to model your data by using embedding. Embedding is often used when you have one-to-many or many-to-many relationships in the data that's being stored. MongoDB recommends embedding documents in order to simplify queries and improve overall query performance. Let's begin with an overview of embedded documents, also known as nested documents. These are documents that contain a document inside of another document. Embedded documents can range from fairly straightforward, such as firstName, lastName embedded in a name field, to complex with many embedded fields. Embedded documents can be used for any type of a relationship model. To illustrate this, consider this document with embedded sub documents for name and address. In the name field, the customer has only one name, Sarah Davis. This is embedded as firstName, lastName. In the address field, the customer has three…
内容
-
-
-
-
-
-
-
-
-
-
-
(已锁定)
Introduction to data modeling3 分钟 8 秒
-
(已锁定)
Types of data relationships2 分钟 57 秒
-
(已锁定)
Modeling data relationships2 分钟 17 秒
-
(已锁定)
Embedding data in documents3 分钟 2 秒
-
(已锁定)
Referencing data in documents1 分钟 27 秒
-
(已锁定)
Scaling a data model2 分钟 43 秒
-
(已锁定)
Using Atlas tools for schema help3 分钟 26 秒
-
(已锁定)
Introduction to MongoDB data modeling review54 秒
-
(已锁定)
-
-