Enable point based sort optimization for all custom comparators #8167
Labels
enhancement
Enhancement or improvement to existing feature or request
Indexing & Search
Performance
This is for any performance related enhancements or bugs
v2.9.0
'Issues and PRs related to version v2.9.0'
As a part of #6321 and #6424 , we enabled Lucene's numeric sort optimization which are based on BKD point values skipping logic.
We can enable this for our custom comparator as well. Which were disabled while upgrading to Lucene 9.1.0 in this PR 2487.
There is no harm adding this back, queries like below in nyc_taxis are showing
15x
improvement onscaled_float
numeric types.total_amount
is scaled_float.Edit : Above query takes 1350~ ms without optimization, 75~ ms with optimization.
The text was updated successfully, but these errors were encountered: