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

PlanCache does not work on 4.0

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: 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.

      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.

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

              Created:
              Updated:
              Resolved: