databend
databend copied to clipboard
feat: TTL for fuse table
Summary
Segment Level TTL to expire the dataใ
optimize table t1 purge
will:
- check the TTL of the table
- purge the segments and blocks if they are expired
any update for this feature?
@caibirdme Hi, no update yet.
Since Databend uses object storage, which is cheaper than local disk, space isn't an issue, and there is a vacuum command(the storage space will reclaim if data is deleted or a table is dropped): https://docs.databend.com/sql/sql-commands/ddl/table/vacuum-table
Future plans to adjust this remain undecided.
in vacuum-table doc, there's a setting DATA_RETENTION_TIME_IN_DAYS
, is it a global setting? How can I make this setting vary from table to table? And is this user's task to run vaccum table routinely?
in vacuum-table doc, there's a setting
DATA_RETENTION_TIME_IN_DAYS
, is it a global setting? How can I make this setting vary from table to table? And is this user's task to run vaccum table routinely?
Yes it's a global setting now. Maybe cc @lichuang can provide help
in vacuum-table doc, there's a setting
DATA_RETENTION_TIME_IN_DAYS
, is it a global setting? How can I make this setting vary from table to table? And is this user's task to run vaccum table routinely?
We are planning to add this option to table.