-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Diagnostics, Querying
-
None
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
With the new explain functionality, there is currently no way to determine the name of the index used (you would need to look at the keypattern field and getIndexes() for the collection).
A number of users rely on the index name for debugging queries (e.g. I created an index named "MY_INDEX", I want to ensure it is being used by a query).
There doesn't seem to be much overhead or downside to adding the index name to the IXSCAN stage, and preserves the functionality some users are expecting.