Skip to content

Commit 8e6375b

Browse files
author
Sam Kleinman
committed
DOCS-91: corrections to limits
1 parent 2d3fa14 commit 8e6375b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

source/reference/limits.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,17 @@ Namespaces
3636
.. limit:: Namespace Length
3737

3838
Each namespace, including database and collection name, must be
39-
shorter than 628 bytes.
39+
shorter than 123 bytes.
4040

4141
.. fix when we know what the actual limit is.
4242

4343
.. _limit-number-of-namespaces:
4444
.. limit:: Number of Namespaces
4545

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.
4848

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.
5850

5951
.. _limit-size-of-namespace-file:
6052
.. limit:: Size of Namespace File
@@ -70,9 +62,8 @@ Indexes
7062
.. _limit-index-size:
7163
.. limit:: Index Size
7264

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.)
7667

7768
.. _limit-number-of-indexes-per-collection:
7869
.. limit:: Number of Indexes per Collection
@@ -87,7 +78,7 @@ Indexes
8778
index name is the concatenation of the field names and index
8879
directions.
8980

90-
You can explicitly specify an name to :dbcommand:`createIndex` or
81+
You can explicitly specify a name to :dbcommand:`createIndex` or
9182
the :method:`db.collection.ensureIndex()` helper if the default
9283
index name is too long.
9384

@@ -102,6 +93,10 @@ Indexes
10293
.. see:: :doc:`/tutorial/enforce-unique-keys-for-sharded-collections`
10394
for an alternate approach.
10495

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+
105100
Replica Sets
106101
~~~~~~~~~~~~
107102

@@ -137,6 +132,11 @@ Operations
137132
from the :operator:`$where` function. This is uncommon in
138133
un-sharded collections.
139134

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+
140140
Naming Restrictions
141141
~~~~~~~~~~~~~~~~~~~
142142

@@ -145,13 +145,13 @@ Naming Restrictions
145145
The dot (i.e. ``.``) character is not permissible in database
146146
names.
147147

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.
150150

151151
.. versionchanged:: 2.2
152152
For MongoDB instances running on Windows.
153153

154-
In 2.2 the following characters permissible in database names:
154+
In 2.2 the following characters are not permissible in database names:
155155

156156
.. code-block:: none
157157

0 commit comments

Comments
 (0)