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

# max_size_* session settings

> ClickHouse session settings in the max_size_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## max\_size\_to\_preallocate\_for\_aggregation

Type

UInt64

Default

1000000000000

For how many elements it is allowed to preallocate space in all hash tables in total before aggregation

## max\_size\_to\_preallocate\_for\_joins

Type

UInt64

Default

1000000000000

For how many elements it is allowed to preallocate space in all hash tables in total before join
