-
Couldn't load subscription status.
- Fork 21
CNDB-15469: Implement NVQ for vector graphs built by compaction #2030
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
base: main
Are you sure you want to change the base?
Conversation
Checklist before you submit for review
|
46dddfb to
97aa041
Compare
97aa041 to
599a119
Compare
NVQ was added as part of jvector's on disk file version 4. We have SAI versioning that properly handles the read/write upgrade implications, so it is safe to use the jvector file format version as the gate in addition to the boolean flag.
599a119 to
12ab1c0
Compare
| // Use non-positive value to disable it. Period in millis to trigger a flush for SAI vector memtable index. | ||
| SAI_VECTOR_FLUSH_PERIOD_IN_MILLIS("cassandra.sai.vector_flush_period_in_millis", "-1"), | ||
| // Use nvq when building graphs in compaction | ||
| SAI_VECTOR_ENABLE_NVQ("cassandra.sai.vector.enable_nvq", "true"), |
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.
Talked with Ted and Mariano, it is not time to enable by default yet.
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.
We might want to push it through as an index option that is disabled by default.
What is the issue
Fixes: https://github.com/riptano/cndb/issues/15469
What does this PR fix and why was it fixed
This is a draft and is not yet complete.
The main open questions come from how to store vectors in an addressable way so that we can iterate them and write them to the correct location. Saving this as a draft to prevent the work from getting lost.