> ## 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_dictionary_* 服务器设置

> max_dictionary_* 自动生成分组中的 ClickHouse 服务器设置。

这些设置用于配置 ClickHouse 服务器，由 ClickHouse 源代码自动生成。

## max\_dictionary\_num\_to\_throw

类型

UInt64

默认值

0

无需重启即可更改

Yes

如果字典数量大于此值，服务器将抛出异常。

仅统计以下数据库引擎中的表：

* Atomic
* Ordinary
* Replicated
* Lazy

> [!NOTE]
>
> 值为 `0` 表示不受限制。

**示例**

```xml theme={null}
<max_dictionary_num_to_throw>400</max_dictionary_num_to_throw>
```

## max\_dictionary\_num\_to\_warn

类型

UInt64

默认值

1000

无需重启即可更改

Yes

如果已附加的字典数量超过指定值，ClickHouse 服务器 会向 `system.warnings` 表添加警告消息。

**示例**

```xml theme={null}
<max_dictionary_num_to_warn>400</max_dictionary_num_to_warn>
```
