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

Make listCollections() an aggregation source

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 2.8.0-rc2
    • Usability
    • None
    • Query Execution
    • Major Change

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: