-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.2.0
-
Component/s: Aggregation Framework, Querying
-
Fully Compatible
-
ALL
-
-
QuInt E (01/11/16), Query F (02/01/16)
Index access stats, retrievable via the $indexStats aggregation source, track the number of times a given index was used to satisfy a user operation.
$match as a document source in aggregation can make use of indexes to retrieve documents but is currently not recording usage statistics. Support should be added for $match as exclusion could lead to the wrong conclusion as to whether an index is being used.
Also missing is a hook to record index access when a mapReduce uses an index to satisfy a "query" argument. This issue will add support for both aggregation and mapReduce.
- is duplicated by
-
SERVER-22183 Aggregation $match doesn`t increase counter in the $indexStats
- Closed