[SERVER-81885] Remove explain attribute from aggregate command idl Created: 05/Oct/23  Updated: 31/Oct/23

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Denis Grebennicov Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

Currently there are two ways to issue explain from aggregate command:

 

db.runCommand({ explain: aggCmd });
db.runCommand({ …aggCmd, explain: true });

The first way is the preferred way, while the second one pre-dates the existence of the explain command.

 

Explain attribute is not part of the stable API (code, documentation) and can be removed.

 

PS: Noticed that aggregate::explain type is not boolean (based on idl definition), but rather explain verbosity and this verbosity is used later for explain


Generated at Thu Feb 08 06:47:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.