Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prefetching for doc values and norms. #13411

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented May 24, 2024

This follows a similar approach as postings and only prefetches the first page of data.

I verified that it works well for collectors such as TopFieldCollector, as IndexSearcher first pulls a LeafCollector, then a BulkScorer and only then starts feeding the BulkScorer into the LeafCollector. So the background I/O for the LeafCollector which will prefetch the first page of doc values and the background I/O for the BulkScorer will run in parallel.

jpountz added 2 commits May 24, 2024 15:19
This follows a similar approach as postings and only prefetches the first page
of data.

I verified that it works well for collectors such as `TopFieldCollector`, as
`IndexSearcher` first pulls a `LeafCollector`, then a `BulkScorer` and only
then starts feeding the `BulkScorer` into the `LeafCollector`. So the
background I/O for the `LeafCollector` which will prefetch the first page of
doc values and the background I/O for the `BulkScorer` will run in parallel.
@jpountz jpountz mentioned this pull request May 24, 2024
9 tasks
Copy link
Contributor

@easyice easyice left a comment

Choose a reason for hiding this comment

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

LGTM

@jpountz jpountz merged commit 05b4639 into apache:main Jun 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants