Skip to content

Commit b3d044b

Browse files
(DOCS-11033): Add limitation for 3.2 and earlier multikey indexes
1 parent 59e4e49 commit b3d044b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/core/index-multikey.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,20 @@ any position in the ``ratings`` array. Then, MongoDB retrieves these
202202
documents and filters for documents whose ``ratings`` array equals the
203203
query array ``[ 5, 9 ]``.
204204

205+
Indexes Built on MongoDB 3.2 or Earlier
206+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
207+
208+
Indexes built on MongoDB 3.2 or earlier do not contain the necessary
209+
flags to support optimized multikey index use. To benefit from the
210+
performance enhancements of multikey indexes, you must either:
211+
212+
- Rebuild the older-format indexes on MongoDB 3.4 or later. See
213+
:method:`db.collection.reIndex()`.
214+
215+
- On a replica set, :doc:`resync the replica set members
216+
</tutorial/resync-replica-set-member/>` containing older-format
217+
indexes.
218+
205219
Examples
206220
--------
207221

0 commit comments

Comments
 (0)