Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-66757

[5.0] Quadratic behavior initializing databases during startup

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

      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@mongodb.com Henrik Edin
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: