-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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.
- related to
-
SERVER-56157 Store MinMax data in flat data structure with user-defined field order
- Closed