[SERVER-75508] Optimize streaming $group Created: 30/Mar/23 Updated: 03/Feb/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | James Wahlin | Assignee: | Backlog - Query Integration |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | qi-timeseries | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Integration
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
We introduced streaming $group for time-series collections when $group _id is on time under 1) Short-cutting accumulation for a single _id value when N results are found 2) Extending this optimization when _id is null, short-cutting when N results are found As part of this ticket we should also consider the following, and either include in scope or create new tickets for them if they make sense: 1) Allow this short cut mechanism for firstN outside of time-series when possible 2) Extend the time-series use case to lastN when/if possible (this would require a reverse scan) |