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

# concurrent_part_removal_threshold_* MergeTree 表设置

> ClickHouse MergeTree 表设置，属于 concurrent_part_removal_threshold_* 自动生成分组。

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](/docs/zh/reference/system-tables/merge_tree_settings) 中查看，且由 ClickHouse 源代码自动生成。

<div id="concurrent_part_removal_threshold">
  ## concurrent\_part\_removal\_threshold
</div>

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

仅当非活动数据分片片段的数量至少达到此值时，才会启用并发数据分片片段移除 (参见 `max_part_removal_threads`) 。

<div id="concurrent_part_removal_threshold_for_remote_disk">
  ## concurrent\_part\_removal\_threshold\_for\_remote\_disk
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.5"},{"label": "16"},{"label": "新设置。当被移除的任一 分片 位于远程磁盘上时，用于进入并发 分片 removal 路径的阈值会降低，因为每次移除通常都需要一次网络往返。旧值 (100) 与旧版 `concurrent_part_removal_threshold` 的默认值一致，因此较旧的 `compatibility` 模式会保留此前的行为。"}]}]} />

与 `concurrent_part_removal_threshold` 相同，但用于至少有一个
被移除的 分片 存储在远程磁盘上时。默认值之所以更低，
是因为在远程存储上移除每个 分片 通常都需要一次网络
往返 (例如，在对象存储上，每个 分片 都需要执行一次 HTTP `DELETE`) ，因此
即使串行移除 100 个 分片，也可能让 `DROP TABLE` 卡上数十
秒。
