Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5811

provide Collection.hideIndex method

    • 1
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      This functionality is advertised in docs and provided by mongo shell, but not by nodejs driver. 

      I would like to take advantage of this feature when phasing out existing indexes. Instead of deleting them straight away, I would like them to be first hidden, and only after confirming that there is no performance regressions, deleted them.

      I am currently using index synchronisation routine, which compares indexes defined in application code\configuration with ones existing on the live database, and then creates missing indexes and deletes excess indexes. I would like to add an option to hide excess indexes, instead of deleting them, however lack of hideIndex helper makes it very inconvenient as I have to use db.command for this instead.

            Assignee:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Reporter:
            adrian.gierakowski@deversifi.com Adrian Gierakowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: