[5.0] Quadratic behavior initializing databases during startup

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Execution Team 2022-06-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Henrik Edin
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: