2022-08-26 19:07:59 +00:00
|
|
|
---
|
|
|
|
slug: /zh/operations/system-tables/merge_tree_settings
|
|
|
|
---
|
2021-12-17 02:25:08 +00:00
|
|
|
# system.merge_tree_settings {#system-merge_tree_settings}
|
2020-06-22 08:45:22 +00:00
|
|
|
|
2021-12-18 12:41:09 +00:00
|
|
|
包含 `MergeTree` 表的设置 (Setting) 信息。
|
2020-06-22 08:45:22 +00:00
|
|
|
|
|
|
|
列:
|
|
|
|
|
2021-12-18 12:41:09 +00:00
|
|
|
- `name` (String) — 设置名称。
|
|
|
|
- `value` (String) — 设置的值。
|
|
|
|
- `description` (String) — 设置描述。
|
|
|
|
- `type` (String) — 设置类型 (执行特定的字符串值)。
|
|
|
|
- `changed` (UInt8) — 该设置是否在配置中明确定义或是明确改变。
|
2021-12-17 01:45:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
**示例**
|
|
|
|
```sql
|
2023-01-11 13:43:51 +00:00
|
|
|
SELECT * FROM system.merge_tree_settings LIMIT 4 FORMAT Vertical;
|
2021-12-17 01:45:04 +00:00
|
|
|
```
|
|
|
|
|
2023-01-11 15:13:31 +00:00
|
|
|
```response
|
2021-12-17 01:45:04 +00:00
|
|
|
Row 1:
|
|
|
|
──────
|
|
|
|
name: index_granularity
|
|
|
|
value: 8192
|
|
|
|
changed: 0
|
|
|
|
description: How many rows correspond to one primary key value.
|
|
|
|
type: SettingUInt64
|
|
|
|
|
|
|
|
Row 2:
|
|
|
|
──────
|
|
|
|
name: min_bytes_for_wide_part
|
|
|
|
value: 0
|
|
|
|
changed: 0
|
|
|
|
description: Minimal uncompressed size in bytes to create part in wide format instead of compact
|
|
|
|
type: SettingUInt64
|
|
|
|
|
|
|
|
Row 3:
|
|
|
|
──────
|
|
|
|
name: min_rows_for_wide_part
|
|
|
|
value: 0
|
|
|
|
changed: 0
|
|
|
|
description: Minimal number of rows to create part in wide format instead of compact
|
|
|
|
type: SettingUInt64
|
|
|
|
|
|
|
|
Row 4:
|
|
|
|
──────
|
|
|
|
name: merge_max_block_size
|
|
|
|
value: 8192
|
|
|
|
changed: 0
|
|
|
|
description: How many rows in blocks should be formed for merge operations.
|
|
|
|
type: SettingUInt64
|
|
|
|
|
|
|
|
4 rows in set. Elapsed: 0.001 sec.
|
|
|
|
```
|