[DOCS-12195] Docs for SERVER-37727: Enhance dropIndexes to accept multiple specific indexes to drop Created: 13/Nov/18  Updated: 13/Nov/23  Resolved: 19/Feb/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.6, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-37727 Enhance dropIndexes to accept multipl... Closed
Participants:
Days since reply: 4 years, 51 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

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.)



 Comments   
Comment by Githook User [ 19/Feb/19 ]

Author:

{'name': 'Kay Kim', 'username': 'kay-kim', 'email': 'kay.kim@10gen.com'}

Message: DOCS-12195: 4.2 dropIndexes take array of index names
Branch: master
https://github.com/mongodb/docs/commit/b2e2720cbd4c74c45310971c5240c22ee899f615

Generated at Thu Feb 08 08:04:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.