Skip to content

Commit 4362ab9

Browse files
authored
DOCS-15213 deprecates reIndex (#942)
* additional considerations * internal review updates
1 parent b63e2a4 commit 4362ab9

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

source/reference/command/reIndex.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Definition
1515

1616
.. dbcommand:: reIndex
1717

18+
.. deprecated:: 6.0
19+
20+
Attempting to run the :dbcommand:`db.collection.reIndex()` command
21+
writes a warning message to the log.
22+
1823
The :dbcommand:`reIndex` command drops all indexes on a
1924
collection and recreates them. This operation may be expensive for
2025
collections that have a large amount of data and/or a large number

source/reference/method/db.collection.reIndex.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ Definition
1414
----------
1515

1616
.. method:: db.collection.reIndex()
17-
17+
18+
.. deprecated:: 6.0
19+
20+
Attempting to run the :method:`db.collection.reIndex()` method
21+
writes a warning message to the log.
1822

1923
.. include:: /includes/fact-mongosh-shell-method.rst
2024

21-
2225
The :method:`db.collection.reIndex()` drops all indexes on a
2326
collection and recreates them. This operation may be expensive for
2427
collections that have a large amount of data and/or a large number

source/release-notes/6.0-compatibility.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,26 @@ Time Series Collections
1919
-----------------------
2020

2121
.. include:: /includes/time-series-secondary-indexes-downgrade-FCV.rst
22+
23+
General Changes
24+
---------------
25+
26+
Deprecations
27+
~~~~~~~~~~~~
28+
29+
.. list-table::
30+
:widths: 20 80
31+
:header-rows: 1
32+
33+
* - Deprecated
34+
35+
- Description
36+
37+
* - :method:`db.collection.reIndex()`
38+
39+
- The :method:`db.collection.reIndex()` method is deprecated in
40+
MongoDB v6.0.
41+
42+
* - :dbcommand:`reIndex`
43+
44+
- The :dbcommand:`reIndex` command is deprecated in MongoDB v6.0.

0 commit comments

Comments
 (0)