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

# compact_parts_* MergeTree table settings

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

## compact\_parts\_max\_bytes\_to\_buffer

Type

UInt64

Default

134217728

Only available in ClickHouse Cloud. Maximal number of bytes to write in a
single stripe in compact parts

## compact\_parts\_max\_granules\_to\_buffer

Type

NonZeroUInt64

Default

128

Only available in ClickHouse Cloud. Maximal number of granules to write in a
single stripe in compact parts

## compact\_parts\_merge\_max\_bytes\_to\_prefetch\_part

Type

UInt64

Default

16777216

Only available in ClickHouse Cloud. Maximal size of compact part to read it
in a whole to memory during merge. A merge also reads a bigger part in a whole
if the part is not bigger than the worst-case memory of a read buffer for each
column (the configured buffer size, twice with prefetch). For a part with small
stripes this can take more memory than reading each column separately, but it
sends one request instead of one per column per stripe. 0 disables it.
