> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# dictionaries_* 服务器设置

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

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>类型</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>默认值</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          无需重启即可更改
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

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

<div id="dictionaries_config">
  ## dictionaries\_config
</div>

字典配置文件的路径。

路径：

* 指定绝对路径，或相对于服务器配置文件的路径。
* 路径中可以包含通配符 \* 和 ?。

另请参见：

* "[字典](/zh/reference/statements/create/dictionary)"。

**示例**

```xml theme={null}
<dictionaries_config>*_dictionary.xml</dictionaries_config>
```

<div id="dictionaries_lazy_load">
  ## dictionaries\_lazy\_load
</div>

<SettingsInfoBlock type="Bool" default_value="1" changeable_without_restart="No" />

字典的延迟加载。

* 如果为 `true`，则每个字典会在首次使用时才加载。如果加载失败，使用该字典的函数会抛出异常。
* 如果为 `false`，则服务器会在启动时加载所有字典。

<Note>
  服务器启动时会等待所有字典完成加载，然后才会接收任何连接
  (例外情况：如果 [`wait_dictionaries_load_at_startup`](/zh/reference/settings/server-settings/settings/other#wait_dictionaries_load_at_startup) 设置为 `false`) 。
</Note>

**示例**

```xml theme={null}
<dictionaries_lazy_load>true</dictionaries_lazy_load>
```

<div id="dictionaries_lib_path">
  ## dictionaries\_lib\_path
</div>

<SettingsInfoBlock type="String" default_value="/var/lib/clickhouse/dictionaries_lib/" changeable_without_restart="No" />

字典库所在的目录。

**示例**

```xml theme={null}
<dictionaries_lib_path>/var/lib/clickhouse/dictionaries_lib/</dictionaries_lib_path>
```
