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

# prefer_fetch_* MergeTree 테이블 설정

> prefer_fetch_* 자동 생성 그룹의 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/ko/reference/system-tables/merge_tree_settings)에서 확인할 수 있으며, ClickHouse 소스에서 자동 생성됩니다.

<div id="prefer_fetch_merged_part_size_threshold">
  ## prefer\_fetch\_merged\_part\_size\_threshold
</div>

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

파트 크기의 합이 이 임계값을 초과하고 복제 로그 항목이 생성된 후 경과한 시간이
`prefer_fetch_merged_part_time_threshold`보다 크면, 로컬에서 머지하는 대신
레플리카에서 병합된 파트를 가져오는 방식을 우선합니다. 이는 매우 오래 걸리는
머지 작업의 속도를 높이기 위한 것입니다.

가능한 값:

* 임의의 양의 정수.

<div id="prefer_fetch_merged_part_time_threshold">
  ## prefer\_fetch\_merged\_part\_time\_threshold
</div>

<SettingsInfoBlock type="Seconds" default_value="3600" />

복제 로그(replication log)(ClickHouse Keeper 또는 ZooKeeper) 항목이 생성된 후 경과한 시간이 이 임계값을 초과하고 파트 크기의 합계가 `prefer_fetch_merged_part_size_threshold`보다 크면, 로컬에서 머지하는 대신 레플리카에서 병합된 파트를 가져오는 방식을 우선합니다. 이는 매우 오래 걸리는 머지 속도를 높이기 위한 것입니다.

가능한 값:

* 양의 정수 아무 값이나 가능합니다.
