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

2.8 - explain shell methods

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.14, mongodb-3.0
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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
      ...

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

              Created:
              Updated:
              Resolved:
              9 years, 21 weeks, 6 days ago