fix(python): added cleanup_frag_reuse_index#7221
Open
gstamatakis95 wants to merge 1 commit into
Open
Conversation
f2eaabb to
d90747b
Compare
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.
Closes #7220
Expose the existing Rust frag-reuse pruner to Python as
LanceDataset.cleanup_frag_reuse_index().Deferred-remap compaction appends a generation to the
__lance_frag_reuseindex on every commit, and without pruning these accumulate forever and are loaded on every vector index open. The race-safe pruner from #3836 already exists in Rust but had no Python binding and is never invoked automatically.The binding follows the
migrate_manifest_paths_v2wrapper pattern, the Python method is documented besidecleanup_old_versionsas a periodic maintenance call, and a new test verifies that__lance_frag_reusereports zero versions once all indexes have caught up and the cleanup runs.