-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up ordinal lookups in composite aggregation (#78313)
This change is an optimization on top of #, that sorts ordinals to perform lookups. The sorting ensures that we don't do the de-compression of blocks in the dictionary of terms more than necessary. In the worst case today, we can decompress the same block for each lookup term per segment, while this change requires only one decompression. This commit also creates the doc values lookup once per request per segment. This is useful when inverted lists are used to shortcut the collection since terms are already sorted in the dictionary.
- Loading branch information
Showing
2 changed files
with
110 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters