Skip to content

Commit 932cf1b

Browse files
author
Bob Grabar
committed
DOCS-648 migrate tutorial wiki to getting started page
1 parent b3b83c4 commit 932cf1b

File tree

3 files changed

+497
-0
lines changed

3 files changed

+497
-0
lines changed

draft/core/schema-free.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
============================
2+
Dynamic Schema (Schema Free)
3+
============================
4+
5+
.. default-domain:: mongodb
6+
7+
MongoDB has :term:`databases <database>`, :term:`collections
8+
<collection>`, and :term:`indexes <index>` much like a traditional
9+
RDBMS. In some cases (databases and collections), these can be
10+
implicitly created. Once created, they exist in a system catalog
11+
(for example, ``db.systems.collections``, ``db.system.indexes``).
12+
13+
Collections contain :term:`BSON` :term:`documents <document>`. Within
14+
these documents are fields. In MongoDB there is no predefinition of
15+
fields (what would be columns in an RDBMS). There is no schema for
16+
fields within documents. The fields and their value datatypes can vary.
17+
Thus there is no notion of an "alter table" operation that adds a
18+
"column".
19+
20+
In practice, it is highly common for a collection to have a homogenous
21+
structure across documents. Hoowever this is not a requirement. This
22+
flexibility means that schema migration and augmentation are very easy
23+
in practice. Rarely will you need to write scripts that perform "alter
24+
table" type operations. In addition to making schema migration flexible,
25+
this facility makes iterative software development atop the database
26+
easier.
27+

0 commit comments

Comments
 (0)