[SERVER-43232] Eliminate the trailing comma when opening "overwrite=false" index cursors Created: 09/Sep/19  Updated: 29/Oct/23  Resolved: 10/Sep/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.3.1
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Related
related to WT-4009 Create fast path for cursor caching w... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-09-09, Execution Team 2019-09-23
Participants:
Linked BF Score: 0

 Description   

SERVER-42218 changed the default configuration string for normal index cursors from "overwrite=false" to the string "overwrite=false,". The difference is the trailing comma at the end.

The WiredTiger cursor cache has an optimization to skip parsing the config string, but only if it is exactly equal to "overwrite=false". In this case, the additional comma eluded the fast-path and required WiredTiger to parse the config string for every index cursor. This introduced performance regressions on workloads that open many index cursors.

The fix should be to construct a comma-less "overwrite=false" config string for normal index cursors.



 Comments   
Comment by Githook User [ 10/Sep/19 ]

Author:

{'name': 'Louis Williams', 'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-43232 Eliminate the trailing comma when opening 'overwrite=false' index cursors
Branch: master
https://github.com/mongodb/mongo/commit/740edbcd17406d7e2d4d11e67625b6f14a510977

Generated at Thu Feb 08 05:02:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.