-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
QE 2024-09-16, QE 2024-09-30, QE 2024-10-14, QE 2024-10-28, QE 2024-11-11, QE 2024-11-25
See linked tickets for some ideas, but generally, this ticket captures the work to refactor/improve the structure of the following files:
This ticket is fairly open ended, but some ideas:
- There are quite a few places where we have special cases for change streams, $documents, etc. Perhaps we should consider refactoring these special cases out (i.e. SERVER-43874), or at least restructure the code in such a way that we don't have a bunch of special case checks scattered throughout the code.
- Similarly, there seem to be separate cases for those aggregates which require a CollectionRoutingInfo and those that don't. We should consider splitting these, as doing so would enable us to acquire the CRI in exactly one spot (as opposed to throughout the sharded agg code path; i.e. SERVER-83658)
- related to
-
SERVER-92350 Update sharded aggregation helpers to operate over AggregateCommandRequest
- Open
-
SERVER-83658 Refactor acquisition of CollectionRoutingInfo across sharded aggregation path
- Backlog
-
SERVER-43874 Factor out change streams targeting logic in mongos away from normal aggregate targeting path
- Backlog