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

# إعدادات جدول MergeTree ‏always_fetch_*

> إعدادات جدول MergeTree في ClickHouse ضمن المجموعة المُنشأة always_fetch_*.

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/ar/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
