Skip to content

Parallelize duplicate point deletions across segments - #5073

Merged
generall merged 2 commits into
devfrom
paralellize-point-deletions
Sep 13, 2024
Merged

generall merged 2 commits into
devfrom
paralellize-point-deletions

Conversation

@timvisee

@timvisee timvisee commented Sep 12, 2024 •

Copy link
Copy Markdown
Member

Improve performance of dropping duplicate points on start in case there is a lot of them.

This parallelizes the deletions across segments, rather than doing them in sequence.

My test collection has a segment of about 750k points with 5 keyword indices having just 2 distinct values. This segment is duplicated to get 750k duplicates.

This is how long it takes when loading:

  • Before PR: 149 seconds
  • After PR: 44 seconds

A more extreme case with 5 copies of the above mentioned segment rather than just 2:

  • Before PR: 277 seconds
  • After PR: 259 seconds
  • After PR with #5072: 65 seconds

This obviously is an very unlikely scenario, but it's a good way to show the potential benefit.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

@timvisee timvisee changed the title Paralellize duplicate point deletions across segments Parallelize duplicate point deletions across segments Sep 13, 2024
@timvisee
timvisee force-pushed the paralellize-point-deletions branch from 3aa251c to f208aa1 Compare September 13, 2024 08:21
@timvisee
timvisee force-pushed the paralellize-point-deletions branch from f208aa1 to f99b0e4 Compare September 13, 2024 09:04
@timvisee
timvisee marked this pull request as ready for review September 13, 2024 09:04
@timvisee
timvisee requested review from generall and xzfc September 13, 2024 09:56
@timvisee timvisee mentioned this pull request Sep 13, 2024
6 tasks done
@generall
generall merged commit 51b9925 into dev Sep 13, 2024
@generall
generall deleted the paralellize-point-deletions branch September 13, 2024 21:29
timvisee added a commit that referenced this pull request Sep 17, 2024
* Parallelize duplicate point deletions across segments

* Fix typo
@timvisee timvisee mentioned this pull request Sep 17, 2024
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.

2 participants