[SERVER-11413] Make agg explain work fully with new query framework Created: 28/Oct/13  Updated: 11/Jul/16  Resolved: 19/Dec/13

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 2.5.3
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-11975 All Runners should support getExplain... Closed
Related
Operating System: ALL
Participants:

 Description   

Original title: Aggregation explain returns "cursorType" : "QueryOptimizerCursor" instead of cursor name

If the query in $match involves only fields in the index then it shows the expected "cursorType" : "BtreeCursor action_id_1" but when another field is added to the query then it shows "cursorType" : "QueryOptimizerCursor" even if by performance it seems to be using the index (there are no other indexes in the collection other than one on _id and one on action_id).



 Comments   
Comment by Githook User [ 21/Jan/14 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-11413 Fix agg DocumentSourceCursor explain format

All stages are supposed to explain as {$stageName: <STUFF>}. The wrapping
object with the stage name was accidentally removed in commit
54cee6c07af4c2973f34b25de271f7258dafbc84.
Branch: master
https://github.com/mongodb/mongo/commit/8bab6b0c9fad64286c22d928bbe8ebfae7e8b2c4

Comment by Githook User [ 19/Dec/13 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-11413 Make agg explain work with new query framework
Branch: master
https://github.com/mongodb/mongo/commit/54cee6c07af4c2973f34b25de271f7258dafbc84

Comment by Daniel Pasette (Inactive) [ 29/Oct/13 ]

There will probably need to be some changes to the explain output for agg once it's hooked up to the new query execution framework.

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