-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Conditionally use sequential stored field reader in LuceneSyntheticSourceChangesSnapshot #121636
Merged
martijnvg
merged 12 commits into
elastic:main
from
martijnvg:LuceneSyntheticSourceChangesSnapshot_sequential_stored_reader
Feb 10, 2025
+24
−2
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6eb67b2
Use sequential reader in LuceneSyntheticSourceChangesSnapshot
martijnvg 41d4e68
iter
martijnvg 8e9436c
added comment
martijnvg 99623e7
Merge remote-tracking branch 'es/main' into LuceneSyntheticSourceChan…
martijnvg 161a429
Merge remote-tracking branch 'es/main' into LuceneSyntheticSourceChan…
martijnvg 1d0a210
pass down docids in order to determine whether to load sequential
martijnvg c6cc1e7
iter
martijnvg 78f0b7e
iter2
martijnvg 0f8dca1
Merge remote-tracking branch 'es/main' into LuceneSyntheticSourceChan…
martijnvg 9a7a3e7
iter3
martijnvg 447de83
Merge remote-tracking branch 'es/main' into LuceneSyntheticSourceChan…
martijnvg 31b81c0
added comment
martijnvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
iter
- Loading branch information
commit c6cc1e79ccba7e587a2efb6873a38cdd110f4690
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I understand we're not increasing the complexity of the method by iterating on
documentRecords
again here (as we already iterates ondocumentRecords
in the outer loop), because we only computenextDocIds
for 1 leaf reader. Can you confirm?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we only compute the docids for the current lead reader. If docid is higher then or equal to docbase + maxDoc then it means current document record belongs to the next leaf reader.