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

# wait_for_* 会话设置

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

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

## wait\_for\_async\_insert

类型

Bool

默认值

1

如果为 true，则等待异步插入处理完成

## wait\_for\_async\_insert\_timeout

类型

Seconds

默认值

120

等待异步插入处理完成的超时时间

## wait\_for\_part\_commit\_in\_dependent\_materialized\_views

类型

Bool

默认值

0

控制每个 sink 是否在其自身依赖的 materialized view 级联运行前，先提交刚写入的 part，从而使通过 `JOIN` 从源表回读数据的级联能够看到该 sink 写入的 part。

此保证仅适用于单个 sink 实例——同一 `INSERT` 的其他 sink 线程写入的 part 此时可能仍不可见。此设置不保证跨线程的提交顺序。

对于插入到没有依赖 materialized view 的表，此设置不起作用。
