Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-935

PlanCache does not work on 4.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • No version
    • Shell API
    • None
    • Needed
    • Hide
      We should document that the {{PlanCache}} class in mongosh does not support the {{.list()}} method on 4.0 servers.

      Those who do need to access the plan cache in some form on 4.0 servers can currently do so by running the {{planCacheListQueryShapes}} command manually.
      Show
      We should document that the {{PlanCache}} class in mongosh does not support the {{.list()}} method on 4.0 servers. Those who do need to access the plan cache in some form on 4.0 servers can currently do so by running the {{planCacheListQueryShapes}} command manually.

    Description

      We use $planCacheStats in the PlanCache class, which is only available in 4.2+ on the server side.

      MONGOSH-938 also has steps to reproduce.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anna.henningsen@mongodb.com Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: