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

Add new plan stats to explain output

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: