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

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

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.6
    • manual, Server
    • None

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 13 weeks, 6 days ago