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

# dead_blobs_* MergeTree 表设置

> ClickHouse 在 dead_blobs_* 生成组中的 MergeTree 表设置。

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["版本", "默认值", "注释"];
  const border = "1px solid rgba(128, 128, 128, 0.3)";
  const cell = {
    border,
    padding: "0.25rem 0.5rem",
    textAlign: "start",
    verticalAlign: "top"
  };
  return <details className="not-prose" style={{
    border,
    borderRadius: "0.5rem",
    margin: "0.5rem 0",
    padding: "0.5rem 0.75rem",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <summary style={{
    cursor: "pointer",
    fontWeight: 600,
    opacity: 0.72
  }}>
        版本历史
      </summary>
      <table style={{
    borderCollapse: "collapse",
    width: "100%",
    margin: "0.5rem 0 0"
  }}>
        <thead>
          <tr>
            {headers.map(header => <th key={header} style={{
    ...cell,
    fontWeight: 600,
    opacity: 0.72
  }}>
                {header}
              </th>)}
          </tr>
        </thead>
        <tbody>
          {rows.map((row, row_index) => <tr key={row.id ?? row_index}>
              {(row.items ?? []).map((item, item_index) => <td key={item_index} style={{
    ...cell,
    overflowWrap: "anywhere"
  }}>
                  {item?.label}
                </td>)}
            </tr>)}
        </tbody>
      </table>
    </details>;
};

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>;
};

这些设置可在 [system.merge\_tree\_settings](/zh/reference/system-tables/merge_tree_settings) 中查看，并由 ClickHouse 源代码自动生成。

<div id="dead_blobs_to_delay_insert">
  ## dead\_blobs\_to\_delay\_insert
</div>

<SettingsInfoBlock type="UInt64" default_value="100000" />

如果表所在磁盘的 dead blobs 队列 中待删除的 blob 数量超过
`dead_blobs_to_delay_insert` 的值，则会人为减慢一次 `INSERT` (最多减慢至 `max_delay_to_insert`) 。

dead blobs 队列 归属于磁盘，并由其上的所有表共享 (包括已删除表的 blob) ，因此应按整个磁盘而非单个表来设置该阈值。

<Tip>
  当 server 无法足够快地清理 blob 时，这项设置会很有用。
</Tip>

可能的值：

* 任意正整数。
* 0 — 禁用。

<div id="dead_blobs_to_throw_insert">
  ## dead\_blobs\_to\_throw\_insert
</div>

<SettingsInfoBlock type="UInt64" default_value="1000000" />

如果表所在磁盘的 dead blobs 队列中等待删除的 blob 数量超过
`dead_blobs_to_throw_insert` 的值，`INSERT` 会被中断，并报出以下错误：

> "表所在磁盘的队列中 dead blobs 过多 (N)。Blob 清理速度明显
> 低于插入速度"

dead blobs 队列 归属于磁盘，并由其上的所有表共享 (包括已删除表的 blob) ，
因此应针对整个磁盘而非单个表来设置该阈值。

可能的值：

* 任意正整数。
* 0 — 禁用。
