-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuse-cases.html
204 lines (192 loc) · 13.1 KB
/
use-cases.html
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Use Cases — MongoDB Manual</title>
<link rel="shortcut icon" href="http://media.mongodb.org/favicon.ico" />
<meta name="robots" content="index" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="canonical" href="http://docs.mongodb.org/master/use-cases" />
<link rel="stylesheet" href="_static/mongodb-docs.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '#',
VERSION: '2.2.2',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: false
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="search" type="application/opensearchdescription+xml" href="http://docs.mongodb.org/osd.xml" title="MongoDB Help"/>
<link rel="author" title="About these documents" href="about.html" />
<link rel="top" title="MongoDB Manual" href="index.html" />
<link rel="next" title="Storing Log Data" href="use-cases/storing-log-data.html" />
<link rel="prev" title="mongo Shell Quick Reference" href="reference/mongo-shell-reference.html" />
<!-- Put the following javascript before the closing </head> tag. -->
<script>
(function() {
var cx = '017213726194841070573:WMX6838984';
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
</script>
</head>
<body>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div id="cse-results"><gcse:searchresults></gcse:searchresults></div>
<div class="section" id="use-cases">
<h1>Use Cases<a class="headerlink" href="#use-cases" title="Permalink to this headline">¶</a></h1>
<p>The use case documents provide introductions to the patterns, design,
and operation used in application development with MongoDB. Each
document provides more concrete examples and implementation details to
support core MongoDB <a class="reference external" href="http://www.10gen.com/use-cases">use cases</a>. These documents highlight
application design, and data modeling strategies (<em>i.e. schema
design</em>) for MongoDB with special attention to pragmatic
considerations including indexing, performance, sharding, and
scaling. Each document is distinct and can stand alone; however, each
section builds on a set of common topics.</p>
<p>The <em>operational intelligence</em> case studies describe applications that
collect machine generated data from logging systems, application
output, and other systems. The <em>product data management</em> case studies
address aspects of applications required for building product
catalogs, and managing inventory in e-commerce systems. The <em>content
management</em> case studies introduce basic patterns and techniques for
building content management systems using MongoDB.</p>
<p>Finally, the <a class="reference internal" href="#applications-tutorials-python"><em>introductory application development tutorials
with Python and MongoDB</em></a>,
provides a complete and fully developed application that you can build
using MongoDB and popular Python web development tool kits.</p>
<div class="section" id="operational-intelligence">
<h2>Operational Intelligence<a class="headerlink" href="#operational-intelligence" title="Permalink to this headline">¶</a></h2>
<p>As an introduction to the use of MongoDB for operational intelligence
and real time analytics use, “<a class="reference internal" href="use-cases/storing-log-data.html"><em>Storing Log Data</em></a>”
document describes several ways and approaches to modeling and storing
machine generated data with MongoDB. Then,
“<a class="reference internal" href="use-cases/pre-aggregated-reports.html"><em>Pre-Aggregated Reports</em></a>” describes methods and
strategies for processing data to generate aggregated reports from raw
event-data. Finally “<a class="reference internal" href="use-cases/hierarchical-aggregation.html"><em>Hierarchical Aggregation</em></a>”
presents a method for using MongoDB to process and store hierarchical
reports (i.e. per-minute, per-hour, and per-day) from raw event data.</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="use-cases/storing-log-data.html">Storing Log Data</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-log-data.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-log-data.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-log-data.html#sharding">Sharding</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-log-data.html#managing-event-data-growth">Managing Event Data Growth</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="use-cases/pre-aggregated-reports.html">Pre-Aggregated Reports</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/pre-aggregated-reports.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/pre-aggregated-reports.html#schema">Schema</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/pre-aggregated-reports.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/pre-aggregated-reports.html#sharding">Sharding</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="use-cases/hierarchical-aggregation.html">Hierarchical Aggregation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/hierarchical-aggregation.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/hierarchical-aggregation.html#schema">Schema</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/hierarchical-aggregation.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/hierarchical-aggregation.html#sharding">Sharding</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="section" id="product-data-management">
<h2>Product Data Management<a class="headerlink" href="#product-data-management" title="Permalink to this headline">¶</a></h2>
<p>MongoDB’s flexible schema makes it particularly well suited to storing
information for product data management and e-commerce websites and
solutions. The “<a class="reference internal" href="use-cases/product-catalog.html"><em>Product Catalog</em></a>” document describes
methods and practices for modeling and managing a product catalog
using MongoDB, while the “<a class="reference internal" href="use-cases/inventory-management.html"><em>Inventory Management</em></a>”
document introduces a pattern for handling interactions between
inventory and users’ shopping carts. Finally the
“<a class="reference internal" href="use-cases/category-hierarchy.html"><em>Category Hierarchy</em></a>” document describes methods for
interacting with category hierarchies in MongoDB.</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="use-cases/product-catalog.html">Product Catalog</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/product-catalog.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/product-catalog.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/product-catalog.html#scaling">Scaling</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="use-cases/inventory-management.html">Inventory Management</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/inventory-management.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/inventory-management.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/inventory-management.html#sharding">Sharding</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="use-cases/category-hierarchy.html">Category Hierarchy</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/category-hierarchy.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/category-hierarchy.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/category-hierarchy.html#sharding">Sharding</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="section" id="content-management-systems">
<h2>Content Management Systems<a class="headerlink" href="#content-management-systems" title="Permalink to this headline">¶</a></h2>
<p>The content management use cases introduce fundamental MongoDB
practices and approaches, using familiar problems and simple
examples. The “<a class="reference internal" href="use-cases/metadata-and-asset-management.html"><em>Metadata and Asset Management</em></a>”
document introduces a model that you may use when designing a web site
content management system, while “<a class="reference internal" href="use-cases/storing-comments.html"><em>Storing Comments</em></a>”
introduces the method for modeling user comments on content, like blog
posts, and media, in MongoDB.</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="use-cases/metadata-and-asset-management.html">Metadata and Asset Management</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/metadata-and-asset-management.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/metadata-and-asset-management.html#operations">Operations</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/metadata-and-asset-management.html#sharding">Sharding</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="use-cases/storing-comments.html">Storing Comments</a><ul>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-comments.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-comments.html#one-document-per-comment">One Document per Comment</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-comments.html#embedding-all-comments">Embedding All Comments</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-comments.html#hybrid-schema-design">Hybrid Schema Design</a></li>
<li class="toctree-l2"><a class="reference internal" href="use-cases/storing-comments.html#sharding">Sharding</a></li>
</ul>
</li>
</ul>
</div>
<span class="target" id="applications-tutorials-python"></span></div>
<div class="section" id="python-application-development">
<h2>Python Application Development<a class="headerlink" href="#python-application-development" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="tutorial/write-a-tumblelog-application-with-django-mongodb-engine.html">Write a Tumblelog Application with Django MongoDB Engine</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorial/write-a-tumblelog-application-with-flask-mongoengine.html">Write a Tumblelog Application with Flask and MongoEngine</a></li>
</ul>
</div>
</div>
</div>
<div id="btnv">
<ul id="btnvl">
<li id="btnvpr"><a href="reference/mongo-shell-reference.html" title="Previous Section: mongo Shell Quick Reference">< mongo Shell Quick Reference</a></li>
<li id="btnvnx"><a href="use-cases/storing-log-data.html" title="Next Section: Storing Log Data">Storing Log Data ></a></li>
</ul>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright 2011-2012, 10gen, Inc. Licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons</a>.
<p>MongoDB®, Mongo®, and the leaf logo are registered trademarks of 10gen, Inc.</p>
<p>The MongoDB Documentation Project uses <a href="https://github.com/mongodb/docs">GitHub</a>. Fork the repository and submit pull requests to contribute.</p>
<p>If you find any issues with the documentation feel free to open a <a href="http://jira.mongodb.org/browse/DOCS">Jira Case</a> and we'll work to resolve it promptly.</p>
</div>
</body>
</html>