Update docs/en/engines/table-engines/mergetree-family/mergetree.md

Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
This commit is contained in:
olgarev 2021-08-22 22:03:56 +03:00 committed by GitHub
parent 9ebae04cfe
commit 9af0ff311f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -582,7 +582,7 @@ TTL d + INTERVAL 1 MONTH GROUP BY k1, k2 SET x = max(x), y = min(y);
Data with an expired `TTL` is removed when ClickHouse merges data parts. Data with an expired `TTL` is removed when ClickHouse merges data parts.
When ClickHouse sees that data is expired, it performs an off-schedule merge. To control the frequency of such merges, you can set `merge_with_ttl_timeout`. If the value is too low, it will perform many off-schedule merges that may consume a lot of resources. When ClickHouse detects that data is expired, it performs an off-schedule merge. To control the frequency of such merges, you can set `merge_with_ttl_timeout`. If the value is too low, it will perform many off-schedule merges that may consume a lot of resources.
If you perform the `SELECT` query between merges, you may get expired data. To avoid it, use the [OPTIMIZE](../../../sql-reference/statements/optimize.md) query before `SELECT`. If you perform the `SELECT` query between merges, you may get expired data. To avoid it, use the [OPTIMIZE](../../../sql-reference/statements/optimize.md) query before `SELECT`.