Skip to content

feat: improve document invalidation efficiency - #623

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

hicder merged 1 commit into
masterfrom
hicder/improve-invalidation

Conversation

@hicder

@hicder hicder commented Jan 27, 2026

Copy link
Copy Markdown
Owner
  • 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