Terminate query execution early if subterm returns empty result set
ClosedPublic

Authored by bruns on Apr 7 2018, 6:15 PM.

Details

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.

Diff Detail

Repository
R293 Baloo
Branch
terminate_empty_terms_early
Lint
No Linters Available
Unit
No Unit Test Coverage
bruns created this revision.Apr 7 2018, 6:15 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptApr 7 2018, 6:15 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
bruns requested review of this revision.Apr 7 2018, 6:15 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald TranscriptMay 29 2018, 12:21 AM

If there a no comments, I will push tomorrow.

dhaumann accepted this revision.May 29 2018, 2:53 AM
This revision is now accepted and ready to land.May 29 2018, 2:53 AM
This revision was automatically updated to reflect the committed changes.