> ## 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.

# vertical_merge_* MergeTree table settings

> ClickHouse MergeTree table settings in the vertical_merge_* 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.

## vertical\_merge\_algorithm\_min\_bytes\_to\_activate

Type

UInt64

Default

0

Minimal (approximate) uncompressed size in bytes in merging parts to activate
Vertical merge algorithm.

## vertical\_merge\_algorithm\_min\_columns\_to\_activate

Type

UInt64

Default

11

Minimal amount of non-PK columns to activate Vertical merge algorithm.

## vertical\_merge\_algorithm\_min\_rows\_to\_activate

Type

UInt64

Default

131072

Minimal (approximate) sum of rows in
merging parts to activate Vertical merge algorithm.

## vertical\_merge\_optimize\_lightweight\_delete

Type

Bool

Default

1

If true, lightweight delete is optimized on vertical merge.

## vertical\_merge\_optimize\_ttl\_delete

Type

Bool

Default

1

If true, a rows-TTL merge can use the vertical merge algorithm instead of falling back to a
horizontal merge. Applies only in `MergeTree`, `Replacing`, `Collapsing` or `VersionedCollapsing`
merging mode, to a table with a rows TTL and no column or `GROUP BY` TTL, and only while no part
in the merge has a lightweight delete. Any other TTL merge stays horizontal.

## vertical\_merge\_remote\_filesystem\_prefetch

Type

Bool

Default

1

If true prefetching of data from remote filesystem is used for the next
column during merge
