> ## 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 テーブル設定

> 自動生成された concurrent_part_removal_threshold_* グループ内の ClickHouse MergeTree テーブル設定。

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/ja/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": "新しい設定。削除対象のパーツにリモートディスク上のものが 1 つでも含まれる場合、同時実行によるパーツ削除処理に切り替わるしきい値を引き下げました。この場合、各削除では通常 1 回のネットワーク往復が発生します。古い値 (100) は従来の `concurrent_part_removal_threshold` のデフォルト値と同じであるため、以前の `compatibility` モードでは従来の動作が維持されます。"}]}]} />

`concurrent_part_removal_threshold` と同じですが、削除対象の
パーツのうち少なくとも 1 つがリモートディスクに保存されている場合に使用されます。デフォルト値が低く
設定されているのは、リモートストレージ上での各パーツ削除で通常はネットワーク
往復が必要になるためです (たとえばオブジェクトストレージでは、パーツごとに 1 回の HTTP `DELETE` が必要です) 。そのため、
100 個のパーツでも直列に削除すると、`DROP TABLE` が数十秒にわたって停止する可能性があります。
