Skip to content

Commit

Permalink
Merge pull request ClickHouse#72052 from ClickHouse/document_ttl_only…
Browse files Browse the repository at this point in the history
…_drop_parts

Documenting MergeTree's ttl_only_drop_parts setting, and updating ref…
  • Loading branch information
nikitamikhaylov authored Nov 19, 2024
2 parents 05bd7f4 + cad22e7 commit 40ad02f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/en/engines/table-engines/mergetree-family/mergetree.md
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,7 @@ If you perform the `SELECT` query between merges, you may get expired data. To a

**See Also**

- [ttl_only_drop_parts](/docs/en/operations/settings/settings.md/#ttl_only_drop_parts) setting

- [ttl_only_drop_parts](/docs/en/operations/settings/merge-tree-settings#ttl_only_drop_parts) setting

## Disk types

Expand Down
10 changes: 10 additions & 0 deletions docs/en/operations/settings/merge-tree-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ If `min_merge_bytes_to_use_direct_io = 0`, then direct I/O is disabled.

Default value: `10 * 1024 * 1024 * 1024` bytes.

## ttl_only_drop_parts

Controls whether data parts are fully dropped in MergeTree tables when all rows in that part have expired according to their `TTL` settings.

When `ttl_only_drop_parts` is disabled (by default), only the rows that have expired based on their TTL settings are removed.

When `ttl_only_drop_parts` is enabled, the entire part is dropped if all rows in that part have expired according to their `TTL` settings.

Default value: 0.

## merge_with_ttl_timeout

Minimum delay in seconds before repeating a merge with delete TTL.
Expand Down

0 comments on commit 40ad02f

Please sign in to comment.