-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
data-models.txt
88 lines (64 loc) · 3.1 KB
/
data-models.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.. _data-modeling-patterns:
.. _data-modeling-examples:
================================
Data Model Examples and Patterns
================================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
.. topic:: Building with Patterns Blog Series
For additional patterns and use cases, see also: `Building with
Patterns
<https://www.mongodb.com/blog/post/building-with-patterns-a-summary>`_
.. /tutorial/model-tree-structures.txt is just a composite page that
includes all the tree structure pages for easy overview.
The following documents provide overviews of various data modeling
patterns and common schema design considerations:
.. class:: toc
:doc:`/applications/data-models-relationships`
Examples for modeling relationships between documents.
:doc:`/tutorial/model-embedded-one-to-one-relationships-between-documents`
Presents a data model that uses :ref:`embedded documents
<data-modeling-embedding>` to describe one-to-one relationships
between connected data.
:doc:`/tutorial/model-embedded-one-to-many-relationships-between-documents`
Presents a data model that uses :ref:`embedded documents
<data-modeling-embedding>` to describe one-to-many
relationships between connected data.
:doc:`/tutorial/model-referenced-one-to-many-relationships-between-documents`
Presents a data model that uses :ref:`references
<data-modeling-referencing>` to describe one-to-many
relationships between documents.
:doc:`/applications/data-models-tree-structures`
Examples for modeling tree structures.
:doc:`/tutorial/model-tree-structures-with-parent-references`
Presents a data model that organizes documents in a tree-like
structure by storing :ref:`references
<data-modeling-referencing>` to "parent" nodes in "child"
nodes.
:doc:`/tutorial/model-tree-structures-with-child-references`
Presents a data model that organizes documents in a tree-like
structure by storing :ref:`references
<data-modeling-referencing>` to "child" nodes in "parent"
nodes.
See :doc:`/applications/data-models-tree-structures` for additional
examples of data models for tree structures.
:doc:`/applications/data-models-applications`
Examples for models for specific application contexts.
:doc:`/tutorial/model-data-for-atomic-operations`
Illustrates how embedding fields related to an atomic update
within the same document ensures that the fields are in sync.
:doc:`/tutorial/model-data-for-keyword-search`
Describes one method for supporting keyword search by storing
keywords in an array in the same document as the text field.
Combined with a multi-key index, this pattern can support
application's keyword search operations.
.. toctree::
:titlesonly:
:hidden:
/applications/data-models-relationships
/applications/data-models-tree-structures
/applications/data-models-applications