[SERVER-14098] Explain Command for Explaining Count 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   

Implement the explain() command. Get it to work for “count”.

Implementation strategy:
  • Need to figure out how to do the auth. Should talk to Andreas/Spencer/Andy.
  • Command first does some validation and parsing. Then calls into the implementation of count with an explain flag set (???).


 Comments   
Comment by Githook User [ 10/Sep/14 ]

Author:

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

Message: SERVER-14098 add CountStage
Branch: master
https://github.com/mongodb/mongo/commit/d71566a55ebbe76ee7f40fd3f2a2a8cd486b0d16

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.