[SERVER-65528] Use range bounded cursors for restoring index cursors after yielding Created: 13/Apr/22 Updated: 29/Oct/23 Resolved: 14/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Deepti Hasija | Assignee: | Shin Yee Tan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | Execution Team 2022-08-08, Execution Team 2022-08-22, Execution Team 2022-09-05, Execution Team 2022-09-19 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Linked BF Score: | 105 | ||||||||||||||||||||||||
| Description |
|
TTL indexes reposition the cursor often to continue deleting the obsolete records. The repositioning uses a search_near which is biased to walk in one direction looking for the records than the other. This could cause a performance issue if the cursor has to walk through a lot of deleted records. The bounded cursor offers a means to limit the range the search_near has to walk, potentially improving the performance. |
| Comments |
| Comment by Githook User [ 14/Sep/22 ] |
|
Author: {'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}Message: |