Skip to content

[vector storages] Don't skip marking as deleted - #5510

Merged
coszio merged 3 commits into
devfrom
fix-shortcut-on-vector-deletion
Nov 25, 2024
Merged

coszio merged 3 commits into
devfrom
fix-shortcut-on-vector-deletion

Conversation

@coszio

@coszio coszio commented Nov 22, 2024 •

Copy link
Copy Markdown
Contributor

In the vector storages, we usually have a deleted_bitvec which marks the vectors as deleted.

However, there was a shortcut, which would skip marking as deleted, if the point offset exceeded the current length of the storage. This is incorrect and should be only applied when setting deleted=false.

This PR fixes those cases and adds (modifies) a test which would fail on dev branch, but now passes

@timvisee timvisee mentioned this pull request Nov 25, 2024
5 tasks done
@coszio
coszio merged commit fbf2ca9 into dev Nov 25, 2024
@coszio
coszio deleted the fix-shortcut-on-vector-deletion branch November 25, 2024 14:31
timvisee pushed a commit that referenced this pull request Dec 9, 2024
* don't skip marking as deleted

* edit test, which fails in dev

* better description
@timvisee timvisee mentioned this pull request Dec 9, 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