[SERVER-53771] $facet should report its summary stats Created: 14/Jan/21 Updated: 29/Oct/23 Resolved: 08/Nov/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 4.9.0 |
| Fix Version/s: | 5.2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rishab Joshi (Inactive) | Assignee: | Bikash Chandra (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Sprint: | QE 2021-08-23, QE 2021-09-06, QE 2021-09-20, QE 2021-10-04, QE 2021-10-18, QE 2021-11-01, QE 2021-11-15 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
$facet current does not report its plan summary stats currently. The problem is similar to the work been done on $lookup, $sort, and $unionWith. The problem of not reporting such stats becomes more visible when $facet is present as a sub-pipeline and the top-level pipeline is been asked to report its aggregated summary stats. In this current scenario, $facet will not be able to report such stats, and hence, the top-level pipeline will also report incorrect stats. A client could also ask for stats directly from $facet if it is present as a top-level pipeline and this will also report incorrect stats. The infra for the same is already available in the current code-base where each derived document source should override the DocumentSource::getSpecificStats() method, if required. SpecificStats base class has a helper method accumulate() which is a convenient method to gather the summary stats from foreign DocumentSources.
In this ticket, we should utilize the current infra and $facet should start reporting its stats.
|
| Comments |
| Comment by Githook User [ 04/Nov/21 ] |
|
Author: {'name': 'Bikash Chandra', 'email': 'bikash.chandra@mongodb.com', 'username': 'bikash-md'}Message: |