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

# min_free_* MergeTree テーブル設定

> min_free_* の生成グループに含まれる 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="min_free_disk_bytes_to_perform_insert">
  ## min\_free\_disk\_bytes\_to\_perform\_insert
</div>

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

データを insert するために、ディスク上で最低限空いている必要があるバイト数です。利用可能な空きバイト数が
`min_free_disk_bytes_to_perform_insert` 未満の場合、例外がスローされ、
insert は実行されません。この設定については、次の点に注意してください。

* `keep_free_space_bytes` 設定を考慮します。
* `INSERT` 操作によって書き込まれるデータ量は考慮しません。
* 正の値 (0 以外の値) が指定されている場合にのみチェックされます

設定可能な値:

* 任意の正の整数。

<Note>
  `min_free_disk_bytes_to_perform_insert` と `min_free_disk_ratio_to_perform_insert`
  の両方が指定されている場合、ClickHouse は、より多くの空きディスク容量で
  insert を実行できるほうの値を採用します。
</Note>

<div id="min_free_disk_ratio_to_perform_insert">
  ## min\_free\_disk\_ratio\_to\_perform\_insert
</div>

<SettingsInfoBlock type="Float" default_value="0" />

`INSERT` を実行するために必要な、総ディスク容量に対する最小空きディスク容量の比率です。値は 0 から 1 までの
浮動小数点数である必要があります。この設定については、次の点に注意してください。

* `keep_free_space_bytes` 設定を考慮します。
* `INSERT` 操作によって書き込まれるデータ量は考慮しません。
* 正の (0 以外の) 比率が指定されている場合にのみチェックされます

設定可能な値:

* Float, 0.0 - 1.0

`min_free_disk_ratio_to_perform_insert` と
`min_free_disk_bytes_to_perform_insert` の両方が指定されている場合、ClickHouse は、より少ない空き
ディスク容量でも insert を実行できるほうの値を基準にします。
