D12025: Terminate query execution early if subterm returns empty result set

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sat Apr 7 18:15:06 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180407/fbede8c4/attachment.html>


More information about the Kde-frameworks-devel mailing list