Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12692

Add cusor-style planCache helpers for query

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0
    • 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.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: