Saltar al contenido
Skillpedia
Bases de datos41 mil · #6971

tuning-incremental-sync-config

Qué hace

Esta skill permite a un agente ajustar la configuración de sincronización de una tabla que ya está conectada al warehouse de PostHog. Está pensada para personas cuya tabla se sincroniza con demasiada frecuencia, demasiado despacio o con un campo de seguimiento incorrecto.

Cuándo usarla

  • ✓Cuando quieres cambiar una tabla de una actualización completa a una sincronización incremental.
  • ✓Cuando una tabla se sincroniza demasiado lento o demasiado a menudo y quieres cambiar su horario.
  • ✓Cuando la tabla de origen cambió y su configuración de sincronización necesita actualizarse.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/PostHog/posthog/blob/master/products/warehouse_sources/skills/tuning-incremental-sync-config/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Por favor, cambia mi tabla de pedidos para que solo sincronice filas nuevas y ajusta el horario para que se ejecute una vez al día.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente lee la configuración actual de la tabla y actualiza las opciones que le pidas. La mayoría de los cambios se aplican en la siguiente sincronización, pero algunos, como cambiar las claves primarias, requieren cuidado extra para no corromper los datos.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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
Preguntas frecuentes

¿Cambiar la configuración de sincronización borrará mis datos?

La mayoría de los cambios son seguros y se aplican en la siguiente sincronización. Algunos requieren un manejo cuidadoso para no dañar los datos ya sincronizados.

¿Puedo cambiar una tabla al modo de captura de cambios de datos?

Sí, la skill cubre el cambio entre los modos de sincronización incremental y de captura de cambios de datos (CDC).

¿Debo usar esto para una fuente nueva?

No. En una fuente nueva la configuración se elige al crearla, así que la skill de configuración de fuentes es la adecuada.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
41 mil
Posición en el ranking
#6971
Licencia
—
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas