Repository navigation
Refactor compaction for concurrent index - #487
Open
razdoburdin wants to merge 7 commits into
Open
razdoburdin wants to merge 7 commits into
razdoburdin wants to merge 7 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The goal of this PR is reduction of compaction time for
concurrent::MutableVamanaIndex.Two approaches are applied:
repair_incomming_connectionstoconcurrent::MutableVamanaIndexand related orchestrators. The method takes a pointer to a response structure with internal ids and do consolidation (reparent of incoming connections) if the vector is soft-deleted (no-op for all other vectors).delete_entriesnow takes an optional pointer to a response structure, if the pointer isn't null it writes internal ids of the newly soft-deleted slots and compaction epoch.C-API changes:
svs_index_dynamic_mark_points_deletedtakes thesvs_task_h* follow_upas parameter, allocate memory for it and write all required data, sofollow_uptask structure has all required information to finalize deletion.svs_execute_tasktakes thesvs_task_h taskand execute it.svs_task_freefrees the tasks's memory.