본문으로 건너뛰기
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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/tuning-incremental-sync-config/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“주문 테이블이 새 행만 동기화하도록 바꾸고, 일정은 하루에 한 번 실행되도록 변경해 주세요.”

매주 새 스킬 5개. 읽는 데 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 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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬