[SERVER-14097] Execution Explain for Find Created: 30/May/14  Updated: 02/Aug/18  Resolved: 27/Jun/14

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 2.7.3

Type: Task Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Get explain of find() to work through the legacy $explain at “executionStats” and “allPlansExecution” verbosities

Implementation strategy:
  • Use an updated version of the PlanStage::getStats(). Just add any additional fields to getStats() as needed to support the new explain spec.
  • Old fields will be kept in place even if not needed for explain (they may be useful going forward).


 Comments   
Comment by Githook User [ 27/Jun/14 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-14097 SERVER-14098 execution-level explain for .find() and .count()

The explain implementation for .find() and .count() is feature complete. To use
the .find() implementation, set the enableNewExplain setParameter to true.

Count operations are explained through the new explain command, e.g.
db.runCommand({explain: {count: "coll", query:

{foo: "bar"}

}}).
Branch: master
https://github.com/mongodb/mongo/commit/1cc6be662ccd83b0341ef1f31f8f4ad30dc69451

Generated at Thu Feb 08 03:33:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.