mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
When a row is deleted from a vec0 virtual table, the rowid slot in _chunks.rowids and vector data in _vector_chunksNN.vectors are now zeroed out (previously left as stale data, tracked in #54). When all rows in a chunk are deleted (validity bitmap all zeros), the chunk and its associated vector/metadata shadow table rows are reclaimed. - Add vec0Update_Delete_ClearRowid to zero the rowid blob slot - Add vec0Update_Delete_ClearVectors to zero all vector blob slots - Add vec0Update_Delete_DeleteChunkIfEmpty to detect and delete fully-empty chunks from _chunks, _vector_chunksNN, _metadatachunksNN - Fix missing rc check in ClearMetadata loop (bug: errors were silently ignored) - Fix vec0_new_chunk to explicitly set _rowid_ on shadow table INSERTs (SHADOW_TABLE_ROWID_QUIRK: "rowid PRIMARY KEY" without INTEGER type is not a true rowid alias, causing blob_open failures after chunk delete+recreate cycles) - Add 13 new tests covering rowid/vector zeroing, chunk reclamation, metadata/auxiliary/partition/text-PK/int8/bit variants, and page_count shrinkage verification - Add vec0-delete-completeness fuzz target - Update snapshots for new delete zeroing behavior Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __snapshots__ | ||
| afbd | ||
| correctness | ||
| fuzz | ||
| leak-fixtures | ||
| minimum | ||
| .gitignore | ||
| .python-version | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| conftest.py | ||
| fuzz.py | ||
| helpers.py | ||
| pyproject.toml | ||
| skip.test-correctness.py | ||
| sqlite-vec-internal.h | ||
| test-auxiliary.py | ||
| test-general.py | ||
| test-insert-delete.py | ||
| test-knn-distance-constraints.py | ||
| test-loadable.py | ||
| test-metadata.py | ||
| test-partition-keys.py | ||
| test-unit.c | ||
| test-wasm.mjs | ||
| unittest.rs | ||
| utils.py | ||
| uv.lock | ||