[SERVER-54800] Support $indexStats aggregation stage for time-series collections Created: 25/Feb/21 Updated: 29/Oct/23 Resolved: 29/Mar/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Benety Goh | Assignee: | Benety Goh |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Sprint: | Execution Team 2021-04-05 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Applications have to access the underlying bucket collection to inspect the indexes on a time-series collection. It would be convenient to be able to use the $indexStats aggregation stage on the time-series collections for the same purpose. |
| Comments |
| Comment by Githook User [ 26/Mar/21 ] | |||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: | |||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 26/Mar/21 ] | |||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: | |||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 26/Mar/21 ] | |||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: | |||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 26/Mar/21 ] | |||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: | |||||||||||||||||||||||||||||||||||||
| Comment by Benety Goh [ 27/Feb/21 ] | |||||||||||||||||||||||||||||||||||||
|
Current $indexStats behavior on a time-series collection (with additional diagnostic messages in pipeline.cpp):
| |||||||||||||||||||||||||||||||||||||
| Comment by Benety Goh [ 27/Feb/21 ] | |||||||||||||||||||||||||||||||||||||
|
According to the $indexStats (aggregation) documentation in the MongoDB Manual, $indexStats must be the first stage in an aggregation pipeline. |