Skip to content

Commit bb69e53

Browse files
author
Sam Kleinman
committed
DOCS-93 and DOCS-196 sharding limitations.
1 parent 3d1ffdd commit bb69e53

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

source/reference/limits.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Limits
7575
MongoDB will only return sorted results on fields without an index
7676
*if* the sort operation uses less than 32 megabytes of memory.
7777

78-
7978
.. _limit-nested-depth:
8079

8180
.. describe:: Nested Depth for BSON Objects
@@ -84,3 +83,27 @@ Limits
8483

8584
MongoDB only supports 100 levels of nesting for :term:`BSON
8685
documents <document>`.
86+
87+
.. _limit-sharding-limitations:
88+
89+
.. describe:: Operations Unavailable in Sharded Environments
90+
91+
The :dbcommand:`group` does not work with sharding. Use
92+
:dbcommand:`mapreduce` or :dbcommand:`aggregate` instead.
93+
94+
:func:`db.veal()` is incompatible with sharded collections. You may
95+
use :func:`db.eval()` with un-sharded collections in a shard
96+
cluster.
97+
98+
:operator:`$where` does not permit references to the ``db`` object
99+
from the :operator:`$where` function. This is uncommon in
100+
un-sharded collections.
101+
102+
.. _limit-sharding-unique-indexes:
103+
104+
.. describe:: Unique Indexes in Sharded Collections
105+
106+
MongoDB does not support unique indexes across shards, except when
107+
the unique index contains the full shard key as a prefix of the
108+
index. In these situations MongoDB will enforce uniqueness across
109+
the full key, not a single field.

0 commit comments

Comments
 (0)