Skip to content

Conversation

@marcus-pousette
Copy link

vlasky added a commit to vlasky/sqlite-vec that referenced this pull request Nov 28, 2025
Implements proper cleanup when deleting rows to prevent memory/storage leaks:
- vec0Update_Delete_ClearRowid(): Zeros out rowid slot in chunks.rowids blob
- vec0Update_Delete_ClearVectors(): Zeros out vector data in all vector_chunks

Additional improvements:
- Add -undefined dynamic_lookup flag for macOS builds (standard for SQLite extensions)
- Add test-snapshots-update Makefile target
- Add comprehensive tests to verify delete properly clears bytes
- Add .venv to .gitignore

Merged from upstream PR asg017#243 by marcus-pousette.
Fixes issues asg017#54, asg017#178, asg017#220.

Co-Authored-By: Marcus Pousette <marcus.pousette@gmail.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.

1 participant