[SERVER-78701] Use cursor for reading chunks in `commitMergeAllChunksOnShard` Created: 06/Jul/23 Updated: 26/Oct/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Pierlauro Sciarelli | Assignee: | Backlog - Catalog and Routing |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | oldshardingemea, shardingemea-qw | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Catalog and Routing
|
| Participants: | |
| Story Points: | 2 |
| Description |
|
When squashing together contiguous chunks via commitMergeAllChunksOnShard, currently a vector is populated with all chunks belonging to a shard for the specified namespace. Purpose of this ticket is to read chunks by using a cursor in order to avoid wasting memory when it's not needed to scan all chunks. |