> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-parallel-read-in-order-multi-part.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# mutations_* セッション設定

> mutations_* グループで生成される ClickHouse のセッション設定。

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.settings](/ja/reference/system-tables/settings) で確認でき、[ソースコード](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) から自動生成されています。

## mutations\_max\_literal\_size\_to\_replace

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

`UPDATE` および `DELETE` クエリで置き換える、シリアライズ済みリテラルの最大サイズ (バイト単位) です。上記 2 つの設定のうち少なくとも 1 つが有効な場合にのみ適用されます。デフォルト値: 16384 (16 KiB) 。

## mutations\_sync

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

`ALTER TABLE ... UPDATE|DELETE|MATERIALIZE INDEX|MATERIALIZE PROJECTION|MATERIALIZE COLUMN|MATERIALIZE STATISTICS` クエリ ([mutations](/ja/reference/statements/alter/index#mutations)) を同期的に実行します。

設定可能な値:

| 値 | 説明 |
| - | - |
| `0` | mutationsは非同期で実行されます。 |
| `1` | クエリは、現在のサーバーですべてのmutationsが完了するまで待機します。 |
| `2` | クエリは、すべてのレプリカですべてのmutationsが完了するまで待機します (レプリカが存在する場合) 。 |
| `3` | クエリは、アクティブなレプリカのみを待機します。非アクティブなレプリカは、アクティブになった時点でmutationsを適用します。 |
