Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4305

2.8 - explain shell methods

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.3.14, mongodb-3.0
    • manual
    • None
    • 16
    • true

    Description

      db.foo.explain().
      .aggregate(...) - explain an aggregation operation
      .count(...) - explain a count operation
      .find(...) - get an explainable query
      .group(...) - explain a group operation
      .remove(...) - explain a remove operation
      .update(...) - explain an update operation
      Explainable collection methods
      .getCollection()
      .getVerbosity()
      .setVerbosity(verbosity)
      ...

      Note the ability to chain
      db.foo.explain().find()
      Explain query methods
      .finish() - sends explain command to the server and returns the result
      .forEach(func) - apply a function to the explain results
      .hasNext() - whether this explain query still has a result to retrieve
      .next() - alias for .finish()

      Explain query modifiers
      .addOption
      .batchSize
      ...

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              kay.kim@mongodb.com Kay Kim (Inactive)
              Jonathan Dahl Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 29 weeks, 4 days ago