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

Opening databases at startup has quadratic behaviour

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • Execution EMEA Team 2023-10-30

      Startup opens all databases, and for each opened database, it compares it against all previously opened databases to check for duplicates. This is quadratic. A test opening 50k databases takes about a minute; with 100k databases, it takes over ten minutes.

        1. flame_graph.png
          90 kB
          Josef Ahmad
        2. flame_graph.svg
          87 kB
          Josef Ahmad

            Assignee:
            david.dominguez@mongodb.com David Dominguez Sal (Inactive)
            Reporter:
            josef.ahmad@mongodb.com Josef Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: