Skip to content

Commit 28ff4f4

Browse files
author
Sam Kleinman
committed
DOCS-169 fixing error in index limits
1 parent c6757f2 commit 28ff4f4

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

aspiration/use-cases/cms-storing-comments.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ This structure:
113113

114114
.. warning::
115115

116-
MongoDB can only index :ref:`128 characters <limits-index-size>`
117-
including field name and namespace (i.e. database name and
118-
collection name.) This may become an issue when you create an index
119-
of the ``full_slug`` field to support sorting.
116+
MongoDB can only index :ref:`1024 bytes <limits-index-size>`. This
117+
includes all field data, the field name, and the namespace
118+
(i.e. database name and collection name.) This may become an issue
119+
when you create an index of the ``full_slug`` field to support
120+
sorting.
120121

121122
Operations
122123
~~~~~~~~~~

source/reference/limits.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ Limits
2323

2424
.. describe:: Index Size
2525

26-
Index names, including their namespace/database, can be *no larger*
27-
than 128 characters.
26+
Indexed items, including their namespace/database, can be *no
27+
larger* than 1024 bytes. This limit includes the indexed content
28+
(i.e. the field value,) the field name (i.e. the key,) and the
29+
namespace (i.e. the database name and the collection name.)
2830

2931
.. _limit-number-of-indexes-per-collection:
3032

0 commit comments

Comments
 (0)