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

# primary_index_* 服务器设置

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

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

## primary\_index\_cache\_policy

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

## primary\_index\_cache\_prewarm\_ratio

类型 Double 默认值 0.95 无需重启即可更改 No预热期间用于填充标记缓存的总大小比例。

## primary\_index\_cache\_size

类型 UInt64 默认值 5368709120 无需重启即可更改 是主索引缓存的最大大小 (用于 MergeTree 家族表的索引) 。

## primary\_index\_cache\_size\_ratio

类型 Double 默认值 0.5 无需重启即可更改 No主索引缓存中受保护队列 (在采用 SLRU policy 时) 的大小占缓存总大小的比例。
