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

2.8 - explain shell methods

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.14, mongodb-3.0
    • Component/s: manual
    • Labels:
      None
    • Last comment by Customer:
      true
    • Actual Time:
      16

      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

              Assignee:
              kay.kim Kay Kim (Inactive)
              Reporter:
              kay.kim Kay Kim (Inactive)
              Participants:
              Last commenter:
              Jonathan Dahl Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 5 weeks, 4 days ago
                Date of 1st Reply: