documentation/query/sql/alter-table-enable-deduplication.md
Enable storage level data deduplication on inserts and configures UPSERT KEYS.
:::note
UPDATE statements.:::
UPSERT KEYS list can include one or more columns. The designated timestamp column must be
included in the UPSERT KEYS list.
Running ALTER TABLE DEDUP ENABLE on a table that already has deduplication
enabled is not an error.
In such cases, the UPSERT KEYS list overrides the previously set key column
list.
To enable deduplication on the TICKER_PRICE table for the ts and ticker
columns, where ts is the designated timestamp for the table, use the following
command:
ALTER TABLE TICKER_PRICE DEDUP ENABLE UPSERT KEYS(ts, ticker)
See more example at data deduplication page