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

Add cusor-style planCache helpers for query

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.5.5
    • Fix Version/s: 2.7.0
    • Component/s: JavaScript, Shell
    • Labels:
      None
    • Backwards Compatibility:
      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

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: