databend icon indicating copy to clipboard operation
databend copied to clipboard

feat: TTL for fuse table

Open BohuTANG opened this issue 2 years ago โ€ข 5 comments

Summary

Segment Level TTL to expire the dataใ€‚ optimize table t1 purge will:

  1. check the TTL of the table
  2. purge the segments and blocks if they are expired

BohuTANG avatar Sep 23 '22 05:09 BohuTANG

any update for this feature?

caibirdme avatar Mar 29 '24 14:03 caibirdme

@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.

BohuTANG avatar Mar 29 '24 15:03 BohuTANG

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?

caibirdme avatar Mar 30 '24 02:03 caibirdme

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

TCeason avatar Mar 30 '24 03:03 TCeason

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.

BohuTANG avatar Mar 30 '24 03:03 BohuTANG