[SERVER-15640] Unify DBQuery and DBExplainQuery Created: 14/Oct/14  Updated: 10/May/22

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

Type: Improvement Priority: Major - P3
Reporter: David Storch Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 0
Labels: move-sa, platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

The shell helpers for explain (see SERVER-14875 and commit d601b91b6b16be3f9) introduced a new JavaScript class in the shell called DBExplainQuery. This class is similar to a DBQuery, and supports many of the same methods, but performs an explain of a .find() or a .count() rather than performing the operation itself.

Rather than having two separate abstractions, we could unify DBExplainQuery and DBQuery into a single query abstraction. Both types of queries must do their job by calling into the same Collection interface. A DBQuery would call into a normal collection and a DBExplainQuery would call into an Explainable collection.



 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

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