免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Referencing data in documents
- Welcome. In this video, you'll learn how to model your data by using references. Before we begin, let's recap our key principle of data modeling with MongoDB. Data that is accessed together should be stored together. This means that you're storing your related data in a single document, but there are times when you might want to store related information in separate documents or maybe even in separate collections. When we want to store data in two different collections but also ensure it's clear that those collections are related, we can use references. References save the ID field of one document and another document as a link between the two. References are simple and sufficient for most use cases. Using references is sometimes called linking or data normalization. Let's go through an example. This is a fairly simple document containing information about a student who is taking multiple courses. The course ID is our…
内容
-
-
-
-
-
-
-
-
-
-
-
(已锁定)
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 秒
-
(已锁定)
-
-