[SERVER-66757] [5.0] Quadratic behavior initializing databases during startup Created: 25/May/22  Updated: 08/Jun/23  Resolved: 09/Jun/22

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

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

Issue Links:
Duplicate
duplicates SERVER-65313 Use BatchedCollectionCatalogWriter du... Closed
Related
Operating System: ALL
Sprint: Execution Team 2022-06-27
Participants:
Case:

 Description   

Startup recovery is quadratic in the number of databases and collections due to the copy-on-write semantics happening here. Every time a database is initialized, we rewrite the entire collection catalog.

This was fixed in 6.0 with SERVER-65313, but it is dependent on some changes that would be tricky to backport. We should implement a simple change for the 5.0 branch.


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