[SERVER-12692] Add cusor-style planCache helpers for query Created: 12/Feb/14  Updated: 11/Jul/16  Resolved: 23/Apr/14

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: 2.5.5
Fix Version/s: 2.7.0

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-12486 shell helpers for plan cache commands Closed
is related to SERVER-12938 Expose and Pretty Print CanonicalQuery Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 23/Apr/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-12692 added cursor-style shell helpers for plan cache
Branch: master
https://github.com/mongodb/mongo/commit/1dd73db967963f6e59342eb4f8850af422ce6a4d

Generated at Thu Feb 08 03:29:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.