[SERVER-71839] Add 'canAppearOnlyOnce' stage constraint and stage-specific position check Created: 05/Dec/22 Updated: 29/Oct/23 Resolved: 13/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0-rc0, 6.0.7 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Romans Kasperovics | Assignee: | Romans Kasperovics |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||
| Sprint: | QE 2023-02-06, QE 2023-02-20 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
This impacts $geoNear and $unpackBucket stages. Until now $unpackBucket was the only stage that can appear only once. With introduction of the $changeStreamSplitLargeEvents stage, both stages should use the same constraint enforcement mechanism. Until now $geoNear stage was the only stage using special position requirement 'kFirstAfterOptimization'. $changeStreamSplitLargeEvents needs yet another special position check after optimization, so we will generalize this approach. |
| Comments |
| Comment by Githook User [ 08/Jun/23 ] |
|
Author: {'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}Message: |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Romans Kasperovics', 'email': 'romans.kasperovics@mongodb.com', 'username': 'romanskas'}Message: |