Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27584

Add support for filter to listDatabases

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.2, 3.5.2
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Query 2017-01-23

      Description

      Add a filter field to the listDatabases command in order to reduce the set of database metadata entries returned. For example, we may only want the list of databases whose names begin with "foo". This could be achieved with the following command:

      db.adminCommand({listDatabases: 1, filter: {name: /^foo/}});
      

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

          Message: SERVER-27584 add filter to listDatabases command
          Branch: master
          https://github.com/mongodb/mongo/commit/d7bd800d3d06004c4ca9114627ee882442e4d5e4

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'} Message: SERVER-27584 add filter to listDatabases command Branch: master https://github.com/mongodb/mongo/commit/d7bd800d3d06004c4ca9114627ee882442e4d5e4
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

          Message: SERVER-27584 add filter to listDatabases command

          (cherry picked from commit d7bd800d3d06004c4ca9114627ee882442e4d5e4)
          Branch: v3.4
          https://github.com/mongodb/mongo/commit/7e8db821ae2c8ed1eaa637f97c301d53b48b2a26

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'} Message: SERVER-27584 add filter to listDatabases command (cherry picked from commit d7bd800d3d06004c4ca9114627ee882442e4d5e4) Branch: v3.4 https://github.com/mongodb/mongo/commit/7e8db821ae2c8ed1eaa637f97c301d53b48b2a26

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                  Agile