-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.5.5
-
Component/s: JavaScript, Shell
-
None
-
Fully Compatible
Follow up from earlier work on getPlanCache() helpers.
Attach some of the plan cache helpers to the Query (DBCursor) so you can do things like:
db.coll.find(...).getQueryPlan().clear() db.coll.find(...).getQueryPlan().toArray/list()
... which may be an easier API for most users, since they think query-centric.
- is related to
-
SERVER-12938 Expose and Pretty Print CanonicalQuery
- Closed
- related to
-
SERVER-12486 shell helpers for plan cache commands
- Closed