Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12195

Docs for SERVER-37727: Enhance dropIndexes to accept multiple specific indexes to drop

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

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 10 weeks ago