[SERVER-79582] Remove HostTypeRequirement::kPrimaryShard from $merge Created: 01/Aug/23 Updated: 29/Oct/23 Resolved: 18/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Storch | Assignee: | Ivan Fefer |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | pm3229-m1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query Execution
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | QE 2023-10-16, QE 2023-10-30 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Use kNone instead of kPrimaryShard. Change distributedPlanLogic() such that we indicate which shard the $merge should execute on in the case that a single shard owns all the data. Test cases:
|
| Comments |
| Comment by Githook User [ 17/Oct/23 ] |
|
Author: {'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}Message: |
| Comment by Ivan Fefer [ 11/Oct/23 ] |
|
> In case of input and output collections are on different shards, which shard should we prefer? According to current implementation, output shard, as having local writes is more profitable than local reads |
| Comment by Ivan Fefer [ 10/Oct/23 ] |
|
In case of input and output collections are on different shards, which shard should we prefer? |