-
Notifications
You must be signed in to change notification settings - Fork 22
[MOD-12346] Remove main-thread graph repair from SVS delete operations #831
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #831 +/- ##
==========================================
+ Coverage 96.63% 96.66% +0.02%
==========================================
Files 126 126
Lines 7379 7374 -5
==========================================
- Hits 7131 7128 -3
+ Misses 248 246 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
indexLabelCount -> only valid vectors
alonre24
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.
Nice!
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.2
git worktree add -d .worktree/backport-831-to-8.2 origin/8.2
cd .worktree/backport-831-to-8.2
git switch --create backport-831-to-8.2
git cherry-pick -x 11ea88d17345c007ae6f040311da356dc15bd621 |
#831) * remove consolidate from delete * indexSize -> includes marked deleted indexLabelCount -> only valid vectors * fix flow tests * Revert "fix flow tests" This reverts commit 831c08c. * Revert "indexSize -> includes marked deleted" This reverts commit 82758c2. * TO REVERT: bump to main SVS * BUMP TO ib/buffer * SVS v0.0.11: take updated bunaries and SVS public * Reapply "indexSize -> includes marked deleted" This reverts commit 3ae28cd. * Reapply "fix flow tests" This reverts commit 45462d4. (cherry picked from commit 11ea88d)
…rations (#831) (#841) * [MOD-12346] Remove main-thread graph repair from SVS delete operations (#831) * remove consolidate from delete * indexSize -> includes marked deleted indexLabelCount -> only valid vectors * fix flow tests * Revert "fix flow tests" This reverts commit 831c08c. * Revert "indexSize -> includes marked deleted" This reverts commit 82758c2. * TO REVERT: bump to main SVS * BUMP TO ib/buffer * SVS v0.0.11: take updated bunaries and SVS public * Reapply "indexSize -> includes marked deleted" This reverts commit 3ae28cd. * Reapply "fix flow tests" This reverts commit 45462d4. (cherry picked from commit 11ea88d) * remove test * remove test * merge meriavg_fix_fp16_svs * format
Fix 1:
Consolidation during
deleteVector()operations blocks the main thread significantly.Benchmarks show ~20 seconds to delete 500 vectors from a 1M vector index.
This PR removes automatic consolidation, leaving cleanup to the GC process.
Fix 2:
Align
indexSizeandindexLabelCountwith HNSW behaviour:IndexSize = indexLabelCount + num_marked_deletedindexLabelCountrepresents only valid vectors.Note: Unlike hnsw, svs doesn't perform in-place deletion, so this logic also applies to svs in a non-tiered index context.