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

# cross_join_* 会话设置

> ClickHouse 中 cross_join_* 自动生成分组下的会话设置。

这些设置可在 [system.settings](https://clickhouse.com/docs/zh/reference/system-tables/settings.md) 中找到，并由 [源代码](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) 自动生成。

## cross\_join\_min\_bytes\_to\_compress

类型

UInt64

默认值

1073741824

在 CROSS JOIN 以及 [block nested loop join](https://clickhouse.com/docs/zh/reference/statements/select/join.md#join-with-an-arbitrary-on-condition) (其右侧输入以相同方式物化) 中进行压缩的最小块大小。值为 0 表示禁用此阈值。达到两个阈值 (按行数或按字节数) 中的任意一个时，便会压缩该块。

## cross\_join\_min\_rows\_to\_compress

类型

UInt64

默认值

10000000

在 CROSS JOIN 中，以及在以相同方式物化其右侧输入的 [block nested loop join](https://clickhouse.com/docs/zh/reference/statements/select/join.md#join-with-an-arbitrary-on-condition) 中，压缩块的最小行数。值为 0 表示禁用此阈值。当两个阈值 (按行数或按字节) 中的任一阈值达到时，该块将被压缩。
