> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# enable_* MergeTree table settings

> ClickHouse MergeTree table settings in the enable_* generated group.

These settings are available in [system.merge\_tree\_settings](https://clickhouse.com/docs/reference/system-tables/merge_tree_settings.md) and are autogenerated from ClickHouse source.

## enable\_adaptive\_codec\_selection

[Beta feature](https://clickhouse.com/docs/reference/settings/beta-and-experimental-features.md#beta-features)

Type

Bool

Default

0

When enabled, merges and mutations choose a codec per block for columns that use the default codec (no `CODEC` clause, or `CODEC(Default)`).
The candidates are the table's default codec (see the `default_compression_codec` setting), `NONE`, and specialized codecs suited to the column type, each on its own and, when the default codec is a general-purpose compression such as `LZ4` or `ZSTD`, followed by it.
The smallest output wins and incompressible blocks are stored raw. The choice is made on one block in every `adaptive_codec_selection_period` blocks and reused for the blocks in between.
A column whose default codec includes encryption (e.g. `AES_128_GCM_SIV`) is never selected adaptively, so encryption is always applied.
Per-block codecs are reported by the [`mergeTreeCodecBlockCounts`](https://clickhouse.com/docs/reference/functions/table-functions/index) table function.

## enable\_index\_granularity\_compression

Type

Bool

Default

1

Compress in memory values of index granularity if it is possible

## enable\_max\_bytes\_limit\_for\_min\_age\_to\_force\_merge

Type

Bool

Default

1

If settings `min_age_to_force_merge_seconds` and
`min_age_to_force_merge_on_partition_only` should respect setting
`max_bytes_to_merge_at_max_space_in_pool`.

Possible values:

* `true`
* `false`

## enable\_mixed\_granularity\_parts

Type

Bool

Default

1

Enables or disables transitioning to control the granule size with the
`index_granularity_bytes` setting. Before version 19.11, there was only the
`index_granularity` setting for restricting granule size. The
`index_granularity_bytes` setting improves ClickHouse performance when
selecting data from tables with big rows (tens and hundreds of megabytes).
If you have tables with big rows, you can enable this setting for the tables
to improve the efficiency of `SELECT` queries.

## enable\_replacing\_merge\_with\_cleanup\_for\_min\_age\_to\_force\_merge

[Experimental feature](https://clickhouse.com/docs/reference/settings/beta-and-experimental-features.md#experimental-features)

Type

Bool

Default

0

Whether to use CLEANUP merges for ReplacingMergeTree when merging partitions
down to a single part. Requires `allow_experimental_replacing_merge_with_cleanup`,
`min_age_to_force_merge_seconds` and `min_age_to_force_merge_on_partition_only`
to be enabled.

Possible values:

* `true`
* `false`

## enable\_row\_mask\_update\_coalescing

Type

Bool

Default

1

Coalesce adjacent singleton `UPDATE _row_exists = 0` commands while mutating a
Wide part with Full storage. The persisted mutation commands and their
versions are unchanged.
Set to false to execute each command separately.

## enable\_the\_endpoint\_id\_with\_zookeeper\_name\_prefix

Type

Bool

Default

0

Enable the endpoint id with zookeeper name prefix for the replicated merge
tree table.

## enable\_vertical\_merge\_algorithm

Type

UInt64

Default

1

Allows eligible background merges to use the vertical merge algorithm. Vertical merges process columns separately to reduce peak memory usage for wide tables, potentially at the cost of merge speed. Setting this to `0` forces horizontal merges; a non-zero value only permits vertical merges—the part format, table engine, `TTL` operation, and `vertical_merge_algorithm_min_*` thresholds still determine whether it is selected.
