Skip to content

SkipBlockRangeIterator should report docCount as its cost#16352

Merged
romseygeek merged 2 commits into
apache:mainfrom
romseygeek:skipblock/cost
Jul 3, 2026
Merged

SkipBlockRangeIterator should report docCount as its cost#16352
romseygeek merged 2 commits into
apache:mainfrom
romseygeek:skipblock/cost

Conversation

@romseygeek

Copy link
Copy Markdown
Contributor

Currently it returns DocIdSetIterator.NO_MORE_DOCS, meaning that it will compare as more costly to almost any other iterator and never be used to drive iteration in conjunctions, even against expensive two-phase queries that report max_doc as their cost.

Currently it returns DocIdSetIterator.NO_MORE_DOCS, meaning that it
will compare as more costly to almost any other iterator and never
be used to drive iteration in conjunctions, even against expensive
two-phase queries that report max_doc as their cost.
@romseygeek romseygeek requested a review from jimczi July 3, 2026 13:09
@romseygeek romseygeek self-assigned this Jul 3, 2026

@jimczi jimczi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@romseygeek romseygeek merged commit 8fe701c into apache:main Jul 3, 2026
12 of 13 checks passed
@romseygeek romseygeek deleted the skipblock/cost branch July 3, 2026 14:51
romseygeek added a commit that referenced this pull request Jul 3, 2026
Currently it returns DocIdSetIterator.NO_MORE_DOCS, meaning that it
will compare as more costly to almost any other iterator and never
be used to drive iteration in conjunctions, even against expensive
two-phase queries that report max_doc as their cost.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants