-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Improved bulk loading for binary doc values #138631
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
Improved bulk loading for binary doc values #138631
Conversation
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
|
Hi @parkertimmins, I've created a changelog YAML for you. |
martijnvg
left a comment
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.
LGTM 👍
| int blockDocOffset = 0; | ||
| int blockByteOffset = 0; | ||
| long[] offsets = new long[count + 1]; | ||
| List<BytesRef> decompressedBlocks = new ArrayList<>(); |
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.
Maybe add a TODO, to account memory usage of decompressedBlocks? This could grow and have a significant jvm heap memory usage.
Eventually this will be accounted, but that happens when we hand over byte[] to the builder.
|
I suspect most of the bwc failures are because of: |
…ing-compressed-binary-dv-dense
martijnvg
left a comment
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.
LGTM2
By decompressing all matching blocks into one byte array and appending that directly into the block builder.