Skip to content
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

Improved cleaning of tombstones #4003

Merged
merged 48 commits into from
Feb 15, 2024
Merged

Conversation

abdelr
Copy link
Contributor

@abdelr abdelr commented Jan 11, 2024

What's being changed:

Currently, we iterate over all nodes to find those connected to the removed nodes. Additionally, we search for the closest neighbours by performing a complete search on the graph.

This PR introduces two main changes. First, it rebuilds the section of the graph by only inferring the connections in the neighbourhood of the removed nodes based on the information available in the graph, rather than performing a search.

Second, it runs the repair of the nodes concurrently since no search is need any longer.

Review checklist

@abdelr abdelr self-assigned this Jan 11, 2024
@abdelr abdelr marked this pull request as draft January 11, 2024 11:36
adapters/repos/db/vector/hnsw/neighbor_connections.go Outdated Show resolved Hide resolved
adapters/repos/db/vector/hnsw/neighbor_connections.go Outdated Show resolved Hide resolved
adapters/repos/db/vector/hnsw/search.go Show resolved Hide resolved
adapters/repos/db/vector/hnsw/delete.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Feb 14, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
14.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@trengrj trengrj marked this pull request as ready for review February 15, 2024 02:09
@parkerduckworth parkerduckworth merged commit a001ce5 into master Feb 15, 2024
31 of 33 checks passed
@parkerduckworth parkerduckworth deleted the improved_cleaning_of_tombstones branch February 15, 2024 18:54
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.

None yet

4 participants