-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.8.0-rc2
-
Component/s: Usability
-
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.
- is duplicated by
-
SERVER-16524 Unable to do system.namespace collection counts with new storage enginers
- Closed
- is related to
-
SERVER-14707 listCollections and listIndexes commands should return a cursor
- Closed