-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Index Maintenance
-
Query Optimization
Following discussion around SERVER-35860, we should add a new $indexKeys aggregation stage whose purpose is to return a cursor over the contents of the index. This would essentially be a replacement for the $returnKey query option, and in the case of $** indexes it would also allow us to examine the index's metadata keys.
The $indexKeys stage would allow integration tests to more closely examine indexing behaviour, and would also be extremely useful for debugging and Support purposes.