ClickHouse/docs/en/operations/system-tables/merge_tree_settings.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
3.2 KiB
Markdown
Raw Normal View History

2022-08-28 13:53:52 +00:00
---
2022-08-28 13:58:27 +00:00
slug: /en/operations/system-tables/merge_tree_settings
2022-08-28 21:34:50 +00:00
title: merge_tree_settings
2022-08-28 13:53:52 +00:00
---
Contains information about settings for `MergeTree` tables.
Columns:
2023-06-23 14:29:49 +00:00
- `name` ([String](../../sql-reference/data-types/string.md)) — Setting name.
- `value` ([String](../../sql-reference/data-types/string.md)) — Setting value.
- `changed` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Whether the setting was explicitly defined in the config or explicitly changed.
- `description` ([String](../../sql-reference/data-types/string.md)) — Setting description.
- `min` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Minimum value of the setting, if any is set via [constraints](../../operations/settings/constraints-on-settings.md#constraints-on-settings). If the setting has no minimum value, contains [NULL](../../sql-reference/syntax.md#null-literal).
- `max` ([Nullable](../../sql-reference/data-types/nullable.md)([String](../../sql-reference/data-types/string.md))) — Maximum value of the setting, if any is set via [constraints](../../operations/settings/constraints-on-settings.md#constraints-on-settings). If the setting has no maximum value, contains [NULL](../../sql-reference/syntax.md#null-literal).
- `readonly` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) — Shows whether the current user can change the setting:
- `0` — Current user can change the setting.
- `1` — Current user cant change the setting.
- `type` ([String](../../sql-reference/data-types/string.md)) — Setting type (implementation specific string value).
2023-09-26 10:45:50 +00:00
- `is_obsolete` ([UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges)) - Shows whether a setting is obsolete.
**Example**
```sql
SELECT * FROM system.merge_tree_settings LIMIT 4 FORMAT Vertical;
```
```response
2023-06-23 14:32:08 +00:00
Row 1:
──────
name: min_compress_block_size
2023-06-23 14:29:49 +00:00
value: 0
changed: 0
2023-06-23 14:29:49 +00:00
description: When granule is written, compress the data in buffer if the size of pending uncompressed data is larger or equal than the specified threshold. If this setting is not set, the corresponding global setting is used.
min: ____
max: ____
readonly: 0
type: UInt64
is_obsolete: 0
Row 2:
──────
2023-06-23 14:29:49 +00:00
name: max_compress_block_size
value: 0
changed: 0
2023-06-23 14:29:49 +00:00
description: Compress the pending uncompressed data in buffer if its size is larger or equal than the specified threshold. Block of data will be compressed even if the current granule is not finished. If this setting is not set, the corresponding global setting is used.
min: ____
max: ____
readonly: 0
type: UInt64
is_obsolete: 0
Row 3:
──────
2023-06-23 14:29:49 +00:00
name: index_granularity
value: 8192
changed: 0
2023-06-23 14:29:49 +00:00
description: How many rows correspond to one primary key value.
min: ____
max: ____
readonly: 0
type: UInt64
is_obsolete: 0
Row 4:
──────
2023-06-23 14:29:49 +00:00
name: max_digestion_size_per_segment
value: 268435456
changed: 0
2023-06-23 14:29:49 +00:00
description: Max number of bytes to digest per segment to build GIN index.
min: ____
max: ____
readonly: 0
type: UInt64
is_obsolete: 0
2023-06-23 14:32:08 +00:00
4 rows in set. Elapsed: 0.009 sec.
```