File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,11 @@ This structure:
113
113
114
114
.. warning::
115
115
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.
120
121
121
122
Operations
122
123
~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ Limits
23
23
24
24
.. describe:: Index Size
25
25
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.)
28
30
29
31
.. _limit-number-of-indexes-per-collection:
30
32
You can’t perform that action at this time.
0 commit comments