1.3.2: storage bloat remediation, doctor --fix cross-project repair, and patch bump - #18
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release v1.3.2 resolves a critical LanceDB storage bloat issue where stale indices and unpruned version manifests accumulated on disk, growing directories to upwards of 6.4 GB (with 98%+ waste). Across workspace databases, disk usage was reduced from ~7.5 GB to ~19 MB (99.7% reclamation) while keeping 100% of visual states intact.
Key Changes
src/core/storage-health.ts): Instant non-locking audit of data fragments, stale indices, old version manifests, and transaction logs.doctor --fix: Adds automated local database compaction, stale index cleanup, and version manifest pruning to thedoctorcommand.doctor-global --fix&--scan <dir>: Added cross-project storage bloat audit and repair across all registered/discovered projects in a single sweep.src/core/storage.tsto checktable.listIndices()before attempting to recreate scalar or vector indexes on startup.storage.optimize()withcleanupOlderThananddeleteUnverified: trueto purge unreferenced historical files.src/core/eviction.tsand extended shutdown timeout to 5,000ms.MAX_LANCEDB_SIZE_MBfrom 1,000 MB to 500 MB.tests/unit/storage-health.test.ts. All 80 test files (394 tests) pass with full matrix and CI validation.