mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
docs: explain storage reclamation after dropping columns (#5174)
Dropping a column can leave its data in files that the current table still needs. The schema guide now explains how compaction and retention determine when cleanup can reclaim those data files and their ordinary Blob v2 sidecars.
This commit is contained in:
@@ -1519,6 +1519,12 @@ but following the conventions keeps your tables consistent with Enterprise tooli
|
||||
You can remove columns using the [`drop_columns`](https://lancedb.github.io/lancedb/python/python/#lancedb.table.Table.drop_columns)
|
||||
method in Python, [`dropColumns`](https://lancedb.github.io/lancedb/js/classes/Table/#dropcolumns) in TypeScript/JavaScript, or `drop_columns` in Rust.
|
||||
|
||||
If a data file still stores other columns, the table keeps it and its ordinary
|
||||
Blob v2 sidecar files when you drop a column or add a new one with the same name.
|
||||
Compaction can rewrite the current columns into new data files. Cleanup can
|
||||
reclaim the superseded data files and their sidecars once the applicable retention
|
||||
window has passed and no retained version, including any tagged version, references
|
||||
those files. See [Garbage Collection](/maintenance/cleanup).
|
||||
|
||||
#### Set Up the example table {#schema-set-up-the-example-table-3}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user