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

Avoid sorting metadata object in BucketCatalog::insert by storing multiple entries in _openBuckets

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-04-19, Execution Team 2021-05-03

      Sorting the metadata in BucketCatalog::insert can be an quite expensive operation. This is done so we can perform binary comparison to lookup bucket independently of user provided field order.

      As an alternative approach that may perform better is to store multiple entries in the _openBuckets hash map that point to the same bucket to handle different sort orders. We can lazily normalize and retry the lookup if the first lookup failed.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: