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.
Details
Details
- Reviewers
michaelh dhaumann - Group Reviewers
Baloo Frameworks - Commits
- R293:5bf021ee134d: Terminate query execution early if subterm returns empty result set
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Branch
- terminate_empty_terms_early
- Lint
No Linters Available - Unit
No Unit Test Coverage