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

# always_fetch_* MergeTree 테이블 설정

> always_fetch_* 자동 생성 그룹에 속하는 ClickHouse 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](/docs/ko/reference/system-tables/merge_tree_settings)에서 확인할 수 있으며 ClickHouse 소스에서 자동 생성됩니다.

<div id="always_fetch_merged_part">
  ## always\_fetch\_merged\_part
</div>

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

true로 설정하면 이 레플리카는 파트를 머지하지 않고, 항상 다른 레플리카에서 병합된 파트를 다운로드합니다.

가능한 값:

* true, false

<div id="always_fetch_mutated_part">
  ## always\_fetch\_mutated\_part
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.8"},{"label": "0"},{"label": "레플리카가 로컬에서 뮤테이션을 실행하는 대신 변경된 파트를 가져오도록 하는 새로운 설정"}]}]} />

true이면 이 레플리카는 `MUTATE_PART` 복제 로그 항목
(예: `ALTER TABLE ... UPDATE/DELETE`와 같은 일반 뮤테이션)을 실행하지 않고, 항상
다른 레플리카에서 변경 결과 파트를 다운로드합니다.

최소 하나의 레플리카에서는 이 설정을 비활성화해야 합니다. 그렇지 않으면 뮤테이션이
완료되지 않습니다.

이 설정은 경량 업데이트로 생성된 패치 파트에는 영향을 주지 않습니다.
패치 파트는 파트가 머지될 때에도 로컬에서 계속 적용됩니다.
`always_fetch_merged_part`도 활성화하면 머지(패치 파트 적용 포함)도
다른 레플리카로 오프로드할 수 있습니다.

이 레플리카는 뮤테이션을 실행하지 않으며 뮤테이션 실패 상태는 각 레플리카별로
로컬에 저장되므로, 이 레플리카에서 동기적으로 대기해도 뮤테이션을 실행하는
레플리카에서 발생한 뮤테이션 실패를 확인할 수 없습니다. 따라서 동기 뮤테이션
(`mutations_sync` = 1 또는 2) 및 데이터를 변경하는 동기 `ALTER` 쿼리
(`alter_sync` = 1 또는 2)는 뮤테이션이 실패하면 대기가 멈춘 채 지속될 수 있으므로,
이러한 레플리카에서는 `SUPPORT_IS_DISABLED` 오류와 함께 거부됩니다.
`mutations_sync` = 0(`alter_sync` = 0)을 사용하거나, 뮤테이션을 실행하는
레플리카에서 이러한 쿼리를 실행하십시오.

가능한 값:

* true, false
