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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.7, 3.1.9
    • Component/s: Performance, Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Completed:
    • Sprint:
      Quint 9 09/18/15

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: