Skip to content

feat: improve document invalidation efficiency#623

Merged
hicder merged 1 commit intomasterfrom
hicder/improve-invalidation
Jan 27, 2026
Merged

feat: improve document invalidation efficiency#623
hicder merged 1 commit intomasterfrom
hicder/improve-invalidation

Conversation

@hicder
Copy link
Owner

@hicder hicder commented Jan 27, 2026

  • Parallelize segment invalidation in Collection::remove_impl using join_all.
  • Replace RwLock with DashSet for invalid_point_ids in BlockBasedIvf to reduce lock contention.
  • Implement doc_id_to_point_id reverse index in BlockBasedIvf to replace O(N) scans with O(1) lookups.
  • Add get_all_doc_ids to BlockBasedPostingListStorage for efficient bulk loading of the reverse index.

- Parallelize segment invalidation in Collection::remove_impl using join_all.
- Replace RwLock<HashSet> with DashSet for invalid_point_ids in BlockBasedIvf to reduce lock contention.
- Implement doc_id_to_point_id reverse index in BlockBasedIvf to replace O(N) scans with O(1) lookups.
- Add get_all_doc_ids to BlockBasedPostingListStorage for efficient bulk loading of the reverse index.
@hicder hicder merged commit 0c9839f into master Jan 27, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant