From a6948ade3670315acfeeae6f92c8c8c75e19dbe5 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Tue, 6 Feb 2024 14:51:08 +0000 Subject: make default flow stats more explicit for both simple and complex leafs account for number of inner children in complex leafs account for seek nesting for complex leafs with children --- .../proton/matching/match_phase_limiter/match_phase_limiter_test.cpp | 3 +++ .../src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'searchcore/src') diff --git a/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp b/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp index 824ee891873..5e10d12e16f 100644 --- a/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp +++ b/searchcore/src/tests/proton/matching/match_phase_limiter/match_phase_limiter_test.cpp @@ -75,6 +75,9 @@ struct MockBlueprint : SimpleLeafBlueprint { { setEstimate(HitEstimate(756, false)); } + search::queryeval::FlowStats calculate_flow_stats(uint32_t docid_limit) const override { + return default_flow_stats(docid_limit, 756, 0); + } SearchIterator::UP createLeafSearch(const TermFieldMatchDataArray &tfmda, bool strict) const override { if (postings_fetched) { diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp index c434203898e..3f533fea28d 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp @@ -205,6 +205,9 @@ private: } return search::BitVectorIterator::create(&_activeLids, get_docid_limit(), *tfmd, strict); } + FlowStats calculate_flow_stats(uint32_t docid_limit) const override { + return default_flow_stats(docid_limit, _activeLids.size(), 0); + } SearchIterator::UP createLeafSearch(const TermFieldMatchDataArray &tfmda, bool strict) const override { -- cgit v1.2.3