[SERVER-22048] Index access stats should be recorded for $match & mapReduce Created: 04/Jan/16 Updated: 18/Nov/16 Resolved: 13/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Querying |
| Affects Version/s: | 3.2.0 |
| Fix Version/s: | 3.2.3, 3.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | James Wahlin | Assignee: | James Wahlin |
| Resolution: | Done | Votes: | 0 |
| Labels: | code-and-test | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Completed: | |||||||||||||||||
| Steps To Reproduce: | Reproduction case for aggregation:
|
||||||||||||||||
| Sprint: | QuInt E (01/11/16), Query F (02/01/16) | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
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. |
| Comments |
| Comment by Githook User [ 13/Jan/16 ] |
|
Author: {u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}Message: (cherry picked from commit c8bc89143725e9c88bb80ca84a261024e170dc50) |
| Comment by Githook User [ 13/Jan/16 ] |
|
Author: {u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}Message: (cherry picked from commit 176fad1a68fd9d0750a3aa4b33c2eb20be7d39ec) |
| Comment by Githook User [ 12/Jan/16 ] |
|
Author: {u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}Message: |
| Comment by Githook User [ 08/Jan/16 ] |
|
Author: {u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}Message: |