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

Add cusor-style planCache helpers for query

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.0
    • 2.5.5
    • JavaScript, Shell
    • None
    • Fully Compatible

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: