Skip to content

fix(core): avoid correlated sqlite-vec orphan cleanup - #1584

Open
mikemikimike wants to merge 1 commit into
basicmachines-co:mainfrom
mikemikimike:fix/sqlite-vec-delete-orphans-1581
Open

mikemikimike wants to merge 1 commit into
basicmachines-co:mainfrom
mikemikimike:fix/sqlite-vec-delete-orphans-1581

Conversation

@mikemikimike

Copy link
Copy Markdown
Contributor

Avoid correlated sqlite-vec orphan cleanup

Why

Issue: #1581

Fixes #1581

Correlated orphan cleanup can fail on SQLite vector-backed deletion paths.

What Changed

Replaced the correlated orphan cleanup query with a JOIN-based deletion so orphaned sqlite-vec rows are removed reliably.

Testing

Focused regression test: uv run pytest tests/repository/test_sqlite_vector_search_repository.py -q — 27 passed.

Signed-off-by: mikemikimike <13286568797@163.com>
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.

[BUG] sqlite-vec delete_orphans uses a correlated DELETE that stalls cleanup and blocks writers

1 participant