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

Make listCollections() an aggregation source

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.8.0-rc2
    • Component/s: Usability
    • Labels:
      None
    • Query Execution
    • Major Change

      Before the listCollections command came about, drivers/users could run a count on systems.collections to find how many collections are in a database.

      Moving to use dbStats now, but that returns how many collections are in a database, total.
      In mmapv1 you have to -2 as there are two system collections.
      Using WiredTiger, the number reflects how many user collections there.

      This is a request to make the number of user collections available somehow, likely in dbStats.

      Getting a count with a filter/query is needed too.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: