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

listCollections command should not be O(n^2) on MMAPv1

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.0.7, 3.1.9
    • Affects Version/s: None
    • Component/s: Performance, Storage
    • Labels:
      None
    • Fully Compatible
    • Quint 9 09/18/15

      Currently it gets the list of namespaces then gets the CollectionOptions for each namespace. The second step involves a table-scan of system.namespaces. Due to SERVER-18622 this happens even if you are only requesting information for a single namespace.

      Instead, the storageEngine API should have a way to get all namespaces and their CollectionOptions in one pass. This should speed up both MMAP and KVCatalog-based engines.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: