summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@yahooinc.com>2023-02-01 15:53:13 +0000
committerHåvard Pettersen <havardpe@yahooinc.com>2023-02-07 12:42:19 +0000
commit1cfb2ee3902ee22a6a2df828c58f0ec514acfc7c (patch)
tree82b167da8f7df132f12cd9406c982a1c786cbac2 /searchcore
parent95e694413c0d4638c95e1d1285b6a45727dc616a (diff)
profile global filter calculation
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/query.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp
index 86b21445919..fa95d729c2c 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/match_tools.cpp
@@ -230,7 +230,7 @@ MatchToolsFactory(QueryLimiter & queryLimiter,
_match_limiter = std::make_unique<NoMatchPhaseLimiter>();
}
trace.addEvent(4, "Complete query setup");
- if (root_trace.shouldTrace(4)) {
+ if (trace.hasTrace()) {
vespalib::slime::ObjectInserter inserter(root_trace.createCursor("query_setup"), "traces");
vespalib::slime::inject(trace.getTraces(), inserter);
}
diff --git a/searchcore/src/vespa/searchcore/proton/matching/query.cpp b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
index 9217b985ba5..b7e3f32a6f6 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/query.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
@@ -292,7 +292,7 @@ Query::handle_global_filter(Blueprint& blueprint, uint32_t docid_limit,
trace->addEvent(5, vespalib::make_string("Calculate global filter (estimated_hit_ratio (%f) <= upper_limit (%f))",
estimated_hit_ratio, global_filter_upper_limit));
}
- global_filter = GlobalFilter::create(blueprint, docid_limit, thread_bundle);
+ global_filter = GlobalFilter::create(blueprint, docid_limit, thread_bundle, trace);
if (!global_filter->is_active() && trace && trace->shouldTrace(5)) {
trace->addEvent(5, "Global filter matches everything");
}