[SERVER-31292] Explain of a $match agg stage does not reflect optimizations Created: 27/Sep/17  Updated: 30/Oct/23  Resolved: 31/Oct/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Justin Seyster Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2017-10-23, Query 2017-11-13
Participants:

 Description   

The DocumentSourceMatch entry in an explain document gets created by the DocumentSourceMatch::serialize() method, but that function outputs the original query input, rather than the resulting MatchExpression, meaning that any optimizations to the MatchExpression do not appear in the explain output.



 Comments   
Comment by Githook User [ 31/Oct/17 ]

Author:

{'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}

Message: SERVER-31292: Make explain reflect optimizations
Branch: master
https://github.com/mongodb/mongo/commit/efd028178dbf938a9f52abf6e9434dea6aa508e3

Generated at Thu Feb 08 04:26:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.