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

Add new plan stats to explain output

      Problem:
      The PlanStage class provides a getStats() method to allow the derived classes (e.g. index_scan, collection_scan etc.) to collect statistics about their specific execution.

      The various runners (SingleSolution, CachedRunner etc.) call getStats() in the getExplainPlan implementation. However, the details collection by each concrete implementation are not projected in the explain plan.

      This could provide core development/debug information as well as help customer support scenarios.

      Solution:
      Enable the dumping out of the getStats() output into the explain plan.

      To view the stats from the shell, use db.col.find().explain(true)

      Workaround:
      None.

            Assignee:
            hari.khalsa@10gen.com hari.khalsa@10gen.com
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: