diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-22 16:42:15 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-01-22 16:42:15 +0000 |
commit | 53b7559194e207367cf93eaab8f8e390df7c6beb (patch) | |
tree | 187eb2f08008f81857224e6422bd25d8cc810406 /searchcore | |
parent | fb0271e2a858053eec087902e1951c5fd8845bb0 (diff) |
Some use cases needs a lower limit
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp index 784ce649c5f..98c5daa1415 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/match_phase_limiter.cpp @@ -102,9 +102,8 @@ do_limit(AttributeLimiter &limiter_factory, SearchIterator::UP search, double ma return search; } -// When hitrate is below 1% limiting the query is often far more expensive than not. -// TODO This limit should probably be a lot higher. -constexpr double MIN_HIT_RATE_LIMIT = 0.01; +// When hitrate is below 0.2% limiting the query is often far more expensive than not. +constexpr double MIN_HIT_RATE_LIMIT = 0.002; } // namespace proton::matching::<unnamed> |