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

# use_statistics_* 세션 설정

> use_statistics_* 생성 그룹에 속한 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](/docs/ko/reference/system-tables/settings)에서 확인할 수 있으며 [소스 코드](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp)로부터 자동 생성됩니다.

<div id="use_statistics">
  ## use\_statistics
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.1"},{"label": "1"},{"label": "이 최적화는 기본적으로 활성화됩니다."}]}]} />

/// 'use\_primary\_key' 및 'use\_skip\_indexes'와의 일관성을 위해 'allow\_statistics\_optimize'보다 이 이름이 더 적합합니다
통계를 사용해 쿼리를 최적화할 수 있도록 합니다

<div id="use_statistics_cache">
  ## use\_statistics\_cache
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.2"},{"label": "1"},{"label": "통계 캐시 활성화"}]}, {"id": "row-2","items": [{"label": "25.11"},{"label": "0"},{"label": "새로운 설정"}]}]} />

쿼리에서 통계 캐시를 사용하면 모든 파트의 통계를 로드하는 추가 오버헤드를 피할 수 있습니다

<div id="use_statistics_for_part_pruning">
  ## use\_statistics\_for\_part\_pruning
</div>

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

<VersionHistory rows={[{"id": "row-1","items": [{"label": "26.4"},{"label": "1"},{"label": "쿼리 실행 중 파트 프루닝에 통계를 사용하기 위한 새로운 설정입니다."}]}]} />

쿼리 실행 중 파트를 필터링하는 데 통계를 사용합니다.

활성화하면 SELECT 쿼리의 프루닝에서 컬럼 통계(예: MinMax 통계)를 사용하여, 데이터를 읽기 전에 일치하는 데이터를 포함할 수 없는 파트를 제외합니다.

가능한 값:

* 0 — 비활성화됨.
* 1 — 활성화됨.
