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

# replicated_deduplication_window_* MergeTree 테이블 설정

> 자동 생성된 replicated_deduplication_window_* 그룹에 속한 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="replicated_deduplication_window">
  ## replicated\_deduplication\_window
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "25.9"},{"label": "10000"},{"label": "기본값 증가"}]}]} />

ClickHouse Keeper가 중복 여부를 확인하기 위해
해시 합을 저장하는 가장 최근에 삽입된 블록의 개수입니다.

가능한 값:

* 모든 양의 정수
* 0 (중복 제거 비활성화)

[삽입 중복 제거](/docs/ko/reference/engines/table-engines/mergetree-family/replication)의 경우,
복제된 테이블(Replicated Table)에 쓸 때 ClickHouse는 중복 제거용 해시 합을
ClickHouse Keeper에 기록합니다. 해시 합은 가장 최근의
`replicated_deduplication_window`개 블록에 대해서만 저장됩니다. 가장 오래된 해시 합은
ClickHouse Keeper에서 제거됩니다.

해시 합은 삽입된 블록 전체를 기준으로 계산되므로, 삽입은 전체 데이터가 이전 삽입(재시도)과
완전히 일치할 때만 중복 제거되며, 개별 파트 단위로는 처리되지 않습니다.

`replicated_deduplication_window` 값을 크게 설정하면 비교해야 하는
항목이 많아지므로 `Inserts`가 느려집니다.

<div id="replicated_deduplication_window_for_async_inserts">
  ## replicated\_deduplication\_window\_for\_async\_inserts
</div>

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

혼합 버전 롤링 업그레이드를 위해 유지되는 레거시 설정입니다. 새 삽입은
`replicated_deduplication_window`가 제어하는 통합 해시로 중복 제거되며, 이제 이 설정은
ClickHouse Keeper의 `async_blocks` 디렉터리에 유지되는 레거시 비동기 삽입 해시의 개수만 제한합니다. 이 디렉터리는
롤링 업그레이드 중에도 이전 레플리카가 계속 기록하고 현재 리더가 정리합니다.
값이 `0`이면 이 해시를 전혀 유지하지 않으며, 다음 정리 단계에서 모든 항목이 제거됩니다. 따라서
업그레이드 중 레거시 비동기 중복 제거 윈도우를 유지하려면 기본값(또는 그보다 큰 값)을 사용하십시오.

<div id="replicated_deduplication_window_seconds">
  ## replicated\_deduplication\_window\_seconds
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "25.10"},{"label": "3600"},{"label": "기본값 감소"}]}]} />

삽입된 블록의 해시 합이 ClickHouse Keeper에서 제거되기까지의 시간(초)입니다.

가능한 값:

* 모든 양의 정수.

[replicated\_deduplication\_window](/docs/ko/reference/settings/merge-tree-settings/replicated-deduplication-window#replicated_deduplication_window)와 마찬가지로,
`replicated_deduplication_window_seconds`는 삽입 중복 제거를 위해 블록의 해시
합을 얼마 동안 저장할지 지정합니다. `replicated_deduplication_window_seconds`보다
오래된 해시 합은 ` replicated_deduplication_window`보다 작더라도
ClickHouse Keeper에서 제거됩니다.

이 시간은 실제 시각이 아니라 가장 최근 레코드의 시각을 기준으로 계산됩니다.
레코드가 하나뿐인 경우에는 영구적으로 저장됩니다.

<div id="replicated_deduplication_window_seconds_for_async_inserts">
  ## replicated\_deduplication\_window\_seconds\_for\_async\_inserts
</div>

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

혼합 버전 롤링 업그레이드를 위해 유지되는 레거시 설정입니다. 이 설정은
`replicated_deduplication_window_for_async_inserts`와 함께 레거시 비동기 삽입 해시가
ClickHouse Keeper의 `async_blocks` 디렉터리에 얼마나 오래 유지되는지의 상한을 정합니다
(롤링 업그레이드 중 이전 레플리카가 기록하고 현재 리더가 정리함). 새로운 삽입에는
`replicated_deduplication_window_seconds`를 사용합니다.
