[SERVER-73288] Cache sharding collection description on update_stage Created: 25/Jan/23  Updated: 29/Oct/23  Resolved: 25/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.2
Sprint: Sharding EMEA 2023-02-06
Participants:
Linked BF Score: 100

 Description   

update_stage currently fetches the sharding collectionDescription for every document it modifies. It would be enough to fetch it only once per restore-yield cycle, and reuse it for all updates done in that cycle.
This is to fix the performance regression caused by SERVER-69435 (BF-26813) which made getting the CSS more expensive.



 Comments   
Comment by Githook User [ 25/Jan/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-73288 Cache sharding collection description on update_stage
Branch: master
https://github.com/mongodb/mongo/commit/0d9d16c84a8ffb4459f87a3a12dca55900979520

Generated at Thu Feb 08 06:24:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.