<@U04S8PLJWMT> I have added incremental sync so is...
# ask-ai
t
@kapa.ai I have added incremental sync so is set to full refresh | overwrite, i don't think this way the incremental sync comes into action properly, guide me the changes required
k
You're correct: if your sync mode is set to Full Refresh | Overwrite, the incremental sync settings will not come into play. In Airbyte, the sync mode determines how data is read from the source and written to the destination: - Full Refresh | Overwrite: Every sync, Airbyte reads all data from the source and completely replaces the data in the destination. This means any incremental logic (like using a cursor to fetch only new or updated records) is ignored. The destination is wiped and replaced with the latest data from the source each time. This is useful for ensuring the destination is always an exact copy of the source, but it is not efficient for large datasets or frequent syncs [[Full Refresh - Overwrite](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes/full-refresh-overwrite)]. - Incremental: Only new or updated records since the last sync are read from the source. This is more efficient for large datasets and frequent syncs, but requires the source to support incremental extraction (usually via a cursor field) [[Sync Modes](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes)]. What you should do: - If you want to leverage incremental sync, you need to set your sync mode to one of the incremental options, such as Incremental | Append or Incremental | Append + Deduped (if your destination supports it). - Setting the sync mode to Full Refresh | Overwrite will always ignore incremental settings and perform a full data replacement. To change this: 1. Go to your Airbyte connection settings. 2. For each stream, select a sync mode that starts with "Incremental" (e.g., "Incremental | Append"). 3. Save and run your sync. Summary: If you want incremental sync to work, do not use "Full Refresh | Overwrite". Choose an incremental sync mode instead. If you continue using "Full Refresh | Overwrite", Airbyte will always reload all data and overwrite the destination, ignoring any incremental logic [[Sync Modes](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes)]. If you need more help choosing the right sync mode, let me know your use case!
t
@kapa.ai there are only three options, overwrite or append or overwrite + deduped and using append doubled my data, so each time the total records would be added not just the last ones, so help me through it
k
A message from kapa.ai
You're observing the expected behavior of the Append sync mode in Airbyte: every time a sync runs, new or updated records are appended to the destination, and previous records are never deleted or updated in place. This means if a record is updated in the source, a new version is added to the destination, resulting in multiple records with the same primary key. Over time, this can double or multiply your data if the same records are updated frequently [[Incremental Sync - Append](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append)]. Why this happens: - Append mode is designed to keep a history of all changes, not just the latest state. - If you only want the latest version of each record, Append is not the right mode. Your options based on available sync modes: - Overwrite: Each sync deletes all data in the destination and writes the latest data from the source. This avoids duplicates but is not incremental and can be inefficient for large datasets. - Append: Adds new/updated records, never deletes or updates existing ones—leads to duplicates if records are updated in the source. - Overwrite + Deduped: Overwrites the destination and deduplicates based on a primary key, but this is still a full refresh, not incremental. What to do: - If you only have these three options and want to avoid duplicates, use Overwrite or Overwrite + Deduped. However, both will reload all data every time, not just the changes. - If you want true incremental sync with deduplication (i.e., only the latest version of each record), you need the Incremental | Append + Deduped mode. If this is not available for your destination, it means your current destination does not support this feature [[Incremental Sync - Append + Deduped](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped)]. Summary: With only Append, Overwrite, and Overwrite + Deduped available, you cannot achieve incremental sync with deduplication. Append will always add new records, leading to duplicates. To avoid this, use Overwrite or Overwrite + Deduped, but be aware these are not incremental and will reload all data each time. If you need incremental deduplication, consider switching to a destination that supports Incremental | Append + Deduped [[Sync Modes](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes)]. Let me know if you need help identifying a compatible destination or have further questions!