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

# uncompressed_cache_* 服务器设置

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

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

## uncompressed\_cache\_policy

类型 String 默认值 SLRU 无需重启即可更改 No未压缩缓存的策略名称。

## uncompressed\_cache\_size

类型

UInt64

默认值

0

无需重启即可更改

Yes

MergeTree 家族表引擎使用的未压缩数据的最大大小 (以字节为单位) 。

整个 server 共用一个未压缩缓存。内存按需分配。启用 `use_uncompressed_cache` 选项后，将使用该缓存。

对于非常短的查询，在某些情况下使用未压缩缓存会更有优势。

> [!NOTE]
>
> 值为 `0` 表示禁用。
>
> 此设置可在运行时修改，并会立即生效。

## uncompressed\_cache\_size\_ratio

类型 Double 默认值 0.5 无需重启即可更改 否在未压缩缓存中，受保护队列 (在 SLRU 策略下) 的大小占缓存总大小的比例。
