tuning-incremental-sync-config
यह क्या करती है
यह स्किल एजेंट को PostHog वेयरहाउस से पहले से जुड़ी टेबल की सिंक सेटिंग बदलने देती है। यह उन लोगों के लिए है जिनकी टेबल बहुत बार, बहुत धीमी गति से, या गलत ट्रैकिंग फ़ील्ड के साथ सिंक होती है।
कब इस्तेमाल करें
- ✓जब आप किसी टेबल को पूरे रीफ़्रेश से इंक्रीमेंटल सिंक पर बदलना चाहें।
- ✓जब कोई टेबल बहुत धीमी या बहुत बार सिंक हो और आप उसका शेड्यूल बदलना चाहें।
- ✓जब स्रोत टेबल बदल गई हो और उसकी सिंक सेटिंग भी अपडेट होनी हो।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/tuning-incremental-sync-config/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कृपया मेरी orders टेबल को सिर्फ़ नई पंक्तियाँ सिंक करने पर बदलिए और शेड्यूल ऐसा कीजिए कि वह दिन में एक बार चले।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट टेबल की मौजूदा सेटिंग पढ़ता है और आपके माँगे गए बदलाव लागू करता है। ज़्यादातर बदलाव अगले सिंक से लागू हो जाते हैं, लेकिन प्राइमरी की बदलने जैसे कुछ बदलावों में डेटा खराब होने से बचाने के लिए अतिरिक्त सावधानी चाहिए।
तकनीकी सामग्री (मूल 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 |
अक्सर पूछे जाने वाले सवाल
क्या सिंक सेटिंग बदलने से मेरा डेटा मिट जाएगा?
ज़्यादातर बदलाव सुरक्षित हैं और अगले सिंक में लागू होते हैं। कुछ बदलावों को पहले से सिंक हुए डेटा को नुकसान से बचाने के लिए सावधानी से संभालना पड़ता है।
क्या मैं किसी टेबल को change data capture मोड पर बदल सकता हूँ?
हाँ। यह स्किल इंक्रीमेंटल और change data capture सिंक मोड के बीच बदलाव को कवर करती है।
क्या इसे नए स्रोत के लिए इस्तेमाल करना चाहिए?
नहीं। नए स्रोत की सेटिंग सेटअप के समय चुनी जाती है, इसलिए वहाँ सोर्स सेटअप वाली स्किल सही है।
जानकारी
लेखक का मूल विवरण
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
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।