-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
Description:
The description of the index field should be extended to include the array format.
https://docs.mongodb.com/manual/reference/command/dropIndexes/
Engineering Ticket Description:
The dropIndexes command must take an array of indexes to drop for a single collection.
This is related to SERVER-37726, which will add the ability to drop in-progress index builds. A createIndexes command can build several indexes under one builder, and right now we can only abort at the builder granularity. So dropIndexes will only be able to drop all or none of the indexes associated with a builder. Thus dropIndexes must take multiple indexes as an argument.
Scope of changes
- 4.2 rel notes
- command dropIndexes
- method db.collection.dropIndexes()
note db.collection.dropIndex() can also accept the array of indexes, but will see from code review if the helper will be modified to restrict to a single index in line with the method name.
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-37727 Enhance dropIndexes to accept multiple specific indexes to drop
- Closed