Skillpedia
قواعد البيانات41k · #6971

tuning-incremental-sync-config

ما الذي تفعله

تتيح هذه المهارة للوكيل تعديل إعدادات مزامنة جدول مرتبط أصلاً بمستودع بيانات PostHog. وهي موجهة إلى من يزامن جدولهم بكثرة أو ببطء أو بحقل تتبع خاطئ.

متى تستخدمها

  • ✓عندما تريد تحويل جدول من التحديث الكامل إلى المزامنة التزايدية.
  • ✓عندما يزامن جدول ببطء أو بكثرة، وتريد تغيير جدوله الزمني.
  • ✓عندما تغيّر جدول المصدر وتحتاج إعدادات مزامنته إلى اللحاق به.

رابط المهارة

https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/tuning-incremental-sync-config/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/tuning-incremental-sync-config/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“من فضلك غيّر جدول الطلبات لدي ليزامن الصفوف الجديدة فقط، واجعل الجدول يعمل مرة واحدة في اليوم.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يقرأ الوكيل الإعدادات الحالية للجدول ويحدّث ما تطلبه. معظم التغييرات تسري في المزامنة التالية، لكن بعضها، مثل تغيير المفاتيح الأساسية، يحتاج إلى عناية خاصة لتجنب إفساد البيانات.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Tuning incremental sync config

A sync's configuration lives on the ExternalDataSchema and can be changed any time via external-data-schemas-partial-update. Most changes are non-destructive (take effect on the next sync), but a few (switching sync_type, changing primary keys) require careful handling to avoid corrupting the synced data.

When to use this skill

  • The user wants to change how an already-connected table is synced
  • A diagnosis flagged the incremental field or primary key as wrong
  • The table is syncing too often / not often enough
  • Switching an incremental table to CDC (or vice versa)
  • The source table was changed on the other side (new columns, dropped columns) and the sync config needs to catch up

If the user is setting up a brand-new source, use setting-up-a-data-warehouse-source instead — configuration is chosen at creation time there.

Available tools

Tool Purpose
external-data-schemas-retrieve Current sync_type, incremental_field, PKs, sync_frequency
external-data-schemas-incremental-fields-create Refresh candidate incremental fields from the live source
external-data-schemas-partial-update Apply the config change
external-data-schemas-reload Trigger a sync with the new config
external-data-schemas-resync Wipe and re-import from scratch when the change invalidates existing data
external-data-schemas-delete-data Drop the synced table while keeping the schema entry
external-data-sources-check-cdc-prerequisites-create Pre-flight Postgres CDC (only when switching to/from CDC)
external-data-sources-webhook-info-retrieve Current webhook state (when switching to/from sync_type=webhook)
external-data-sources-create-webhook-create Register a webhook after switching a schema to sync_type=webhook
external-data-sources-update-webhook-inputs-create Rotate a webhook signing secret
external-data-sources-delete-webhook-create Unregister webhook when switching schemas off sync_type=webhook

The fields you can tune

From the partial-update endpoint:

Field Values Notes
sync_type full_refresh, incremental, append, cdc, webhook Source must support the target type — check via incremental-fields
incremental_field Column name from the source Must appear in incremental_fields list for the schema
incremental_field_type datetime, date, timestamp, integer, numeric, objectid Must match the column's real type
primary_key_columns Array of column names Required for CDC. Used for upsert dedup on incremental
cdc_table_mode consolidated, cdc_only, both Only meaningful when sync_type=cdc
sync_frequency 5min, 15min, 30min, 1hour, 6hour, 12hour, 24hour, 7day, 30day, never How often the table syncs. CDC: how often changes load, 7day max
sync_time_of_day HH:MM:SS When sync_frequency is daily/weekly-scale
should_sync true / false
الأسئلة الشائعة

هل يمسح تغيير إعدادات المزامنة بياناتي؟

معظم التغييرات آمنة وتُطبَّق في المزامنة التالية. بعضها يحتاج إلى معالجة حذرة لتجنب إتلاف البيانات المزامنة مسبقاً.

هل أستطيع التحويل إلى التقاط تغيير البيانات (CDC)؟

نعم، تغطي المهارة التبديل بين وضعي المزامنة التزايدية والتقاط تغيير البيانات.

هل أستخدمها لمصدر جديد تماماً؟

لا. للمصدر الجديد تُختار الإعدادات عند الإعداد، لذلك مهارة إعداد المصدر هي المناسبة.

التفاصيل

الوصف الأصلي من المؤلف

Change the sync configuration of an existing data warehouse schema — switch sync_type, pick a different incremental_field, set primary_key_columns, choose cdc_table_mode, or change sync_frequency. Use when the user asks "switch my orders table from full refresh to incremental", "this table is syncing too slowly / too frequently", "I need to pick a different incremental column", "set up CDC for this Postgres table", or when diagnosis of a failing sync pointed to an incremental-field or PK misconfiguration.

repo: PostHog/posthog

الشعبية

نجوم GitHub
41k
الترتيب
#6971
الترخيص
—
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة