@@ -36,25 +36,17 @@ Namespaces
36
36
.. limit:: Namespace Length
37
37
38
38
Each namespace, including database and collection name, must be
39
- shorter than 628 bytes.
39
+ shorter than 123 bytes.
40
40
41
41
.. fix when we know what the actual limit is.
42
42
43
43
.. _limit-number-of-namespaces:
44
44
.. limit:: Number of Namespaces
45
45
46
- The limitation on the number of namespaces is a function of the
47
- size of the namespace file .
46
+ The limitation on the number of namespaces is the size of the
47
+ namespace file divided by 628 .
48
48
49
- .. ( size of namespace file / 628 ) rounded down.
50
-
51
- By default namespace files are 16 megabytes; however, with the
52
- :setting:`nssize` setting, ns files can be no larger than 2
53
- gigabytes.
54
-
55
- .. todo:: rephrase above
56
-
57
- A 16 megabyte namespace file can support 24,000 namespaces.
49
+ A 16 megabyte namespace file can support approximately 24,000 namespaces.
58
50
59
51
.. _limit-size-of-namespace-file:
60
52
.. limit:: Size of Namespace File
@@ -70,9 +62,8 @@ Indexes
70
62
.. _limit-index-size:
71
63
.. limit:: Index Size
72
64
73
- Indexed items, including their namespace/database, can be *no
74
- larger* than 1024 bytes. This value is the indexed content
75
- (i.e. the field value.)
65
+ Indexed items can be *no larger* than 1024 bytes. This value is the
66
+ indexed content (i.e. the field value, or compound field value.)
76
67
77
68
.. _limit-number-of-indexes-per-collection:
78
69
.. limit:: Number of Indexes per Collection
@@ -87,7 +78,7 @@ Indexes
87
78
index name is the concatenation of the field names and index
88
79
directions.
89
80
90
- You can explicitly specify an name to :dbcommand:`createIndex` or
81
+ You can explicitly specify a name to :dbcommand:`createIndex` or
91
82
the :method:`db.collection.ensureIndex()` helper if the default
92
83
index name is too long.
93
84
@@ -102,6 +93,10 @@ Indexes
102
93
.. see:: :doc:`/tutorial/enforce-unique-keys-for-sharded-collections`
103
94
for an alternate approach.
104
95
96
+ .. limit:: Number of Indexed Fields in a Compound Index:
97
+
98
+ There can be no more than 31 fields in a compound index.
99
+
105
100
Replica Sets
106
101
~~~~~~~~~~~~
107
102
@@ -137,6 +132,11 @@ Operations
137
132
from the :operator:`$where` function. This is uncommon in
138
133
un-sharded collections.
139
134
135
+ The :operator:`$atomic` update modifier does not work in sharded
136
+ environments.
137
+
138
+ :operator:`$snapshot` queries do not work in sharded environments.
139
+
140
140
Naming Restrictions
141
141
~~~~~~~~~~~~~~~~~~~
142
142
@@ -145,13 +145,13 @@ Naming Restrictions
145
145
The dot (i.e. ``.``) character is not permissible in database
146
146
names.
147
147
148
- Database names are only case sensitive if the underlying file
149
- system has case sensitive file names .
148
+ Database names are case sensitive even if the underlying file
149
+ system is case insensitive .
150
150
151
151
.. versionchanged:: 2.2
152
152
For MongoDB instances running on Windows.
153
153
154
- In 2.2 the following characters permissible in database names:
154
+ In 2.2 the following characters are not permissible in database names:
155
155
156
156
.. code-block:: none
157
157
0 commit comments