Remove writing redundant binary doc value copy of jVector based vectors. - #715
Merged
akash-shankaran merged 4 commits intoSep 6, 2026
Conversation
akash-shankaran
requested review from
MedhaSrivatsa,
jimdickinson,
reta,
sam-herman and
sandoichi
as code owners
August 29, 2026 06:46
reta
reviewed
Aug 31, 2026
Signed-off-by: Akash Shankaran <akash.shankaran1@gmail.com>
akash-shankaran
commented
Sep 5, 2026
reta
approved these changes
Sep 6, 2026
5 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Presently jvector writes 2 copies of vector files:
The .dvd copy is never read by jVector, as all its readers rely on being served from the inline vector graph.
This leads to higher storage and added overhead on index build, and merge times.
Given modifying doc values of existing indices could lead to issues, this change is safe for newer indices created in v3.9.0.0 onwards.
Advantages:
Experimental Data:
Measured on sift-100k (128d) PQ, 1 shard force-merged to 1 segment:
index size goes from 125.18 MB to 76.50 MB (-38.9%), with
data-jvectorfile being byte-identical and no impact on recall@k and recall@1. The removed ~50MB bytes is one fp32 copy (100000 x 128 x 4).Related Issues
Resolves #716
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.