bruns created this revision. bruns added reviewers: Baloo, michaelh. Restricted Application added projects: Frameworks, Baloo. Restricted Application added a subscriber: Frameworks. bruns requested review of this revision.
REVISION SUMMARY Leaf queries may return an empty result set, which is signalled by returning a nullptr. Immediately break if the query is part of an Term::And, and omit it if it is a Term::Or. As creating the PostingOperator implicitly executes the database query, it is beneficial to omit queries whose result is not used anyway. REPOSITORY R293 Baloo BRANCH terminate_empty_terms_early REVISION DETAIL https://phabricator.kde.org/D12025 AFFECTED FILES src/engine/transaction.cpp src/lib/searchstore.cpp To: bruns, #baloo, michaelh Cc: #frameworks, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, alexeymin