> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# write_* MergeTree 테이블 설정

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

<div id="write_final_mark">
  ## write\_final\_mark
</div>

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

더 이상 사용되지 않는 설정이며, 아무런 동작도 하지 않습니다.

<div id="write_marks_for_substreams_in_compact_parts">
  ## write\_marks\_for\_substreams\_in\_compact\_parts
</div>

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

Compact 파트에서 컬럼별이 아니라 각 서브스트림별로 마크를 작성하도록 합니다.
이를 통해 데이터 파트에서 개별 서브컬럼을 효율적으로 읽을 수 있습니다.

예를 들어, 컬럼 `t Tuple(a String, b UInt32, c Array(Nullable(UInt32)))` 는 다음 서브스트림으로 직렬화됩니다.

* 튜플 원소 `a`의 String 데이터용 `t.a`
* 튜플 원소 `b`의 UInt32 데이터용 `t.b`
* 튜플 원소 `c`의 배열 크기용 `t.c.size0`
* 튜플 원소 `c`의 중첩 배열 원소에 대한 null 맵용 `t.c.null`
* 튜플 원소 `c`의 중첩 배열 원소에 대한 UInt32 데이터용 `t.c`

이 설정이 활성화되면 이 5개의 서브스트림 각각에 대해 마크를 작성합니다. 즉, 필요할 경우 각 서브스트림의 데이터를 granule에서 개별적으로 읽을 수 있습니다. 예를 들어 서브컬럼 `t.c`를 읽으려는 경우
서브스트림 `t.c.size0`, `t.c.null`, `t.c`의 데이터만 읽고 `t.a`와 `t.b` 서브스트림의 데이터는 읽지 않습니다. 이 설정이 비활성화되면,
최상위 컬럼 `t`에 대해서만 마크를 작성합니다. 즉, 일부 서브스트림의 데이터만 필요하더라도 항상 granule에서 전체 컬럼 데이터를 읽게 됩니다.
