diff --git a/docs/doc/30-reference/30-sql/00-ddl/20-table/60-optimize-table.md b/docs/doc/30-reference/30-sql/00-ddl/20-table/60-optimize-table.md index 596a2f10b6e6..10fe013abd3c 100644 --- a/docs/doc/30-reference/30-sql/00-ddl/20-table/60-optimize-table.md +++ b/docs/doc/30-reference/30-sql/00-ddl/20-table/60-optimize-table.md @@ -4,6 +4,10 @@ title: OPTIMIZE TABLE Use this command to compact the data in a table or purge historical data from a table. +:::tip +Databend's Time Travel feature relies on historical data. If you purge historical data from a table with the command `OPTIMIZE TABLE PURGE` or `OPTIMIZE TABLE ALL`, the table will not be eligible for time travel. The command removes all snapshots (except the most recent one) and their associated segments and block files. +::: + ## Syntax ```sql