Fabrizio Spini
08/11/2025, 8:47 AMkapa.ai
08/11/2025, 8:48 AMbinlog_format=ROW and that binary logging is enabled (log_bin=ON) [MySQL CDC: Build an ELT pipeline from MySQL Database](https://airbyte.com/tutorials/mysql-change-data-capture-cdc). 2. Set up the Airbyte connection: - When creating the connection, select your MySQL source and BigQuery destination. - Choose the Incremental | Append sync mode. In CDC mode, this will ensure that only the changes captured in the binlog are synced to BigQuery. - You do not need to select a cursor field manually; Airbyte will use the CDC internal cursor managed by Debezium [Explore Airbyte's Change Data Capture (CDC) synchronization](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication). 3. Run the sync: After saving the connection, trigger a sync. Airbyte will read all changes from the MySQL binlog and write them to BigQuery. All rows present in the binlog (i.e., all changes since the last sync or since CDC was enabled) will be replicated to the destination. Important notes: - The initial sync will perform a full snapshot of the source table(s), after which only changes from the binlog are replicated. - Ensure your MySQL binlog retention is set high enough so that binlogs are not purged before Airbyte can read them, especially for large tables or infrequent syncs. If binlogs are purged too soon, Airbyte may be forced to do a full refresh [Troubleshooting MySQL Sources](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#troubleshooting). - In CDC mode, Airbyte automatically manages the cursor and primary key selection; you do not need to configure these manually [Explore Airbyte's Change Data Capture (CDC) synchronization](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication). If you follow these steps, all changes present in the MySQL binlogs will be captured and stored in your BigQuery destination via Airbyte's CDC pipeline.Fabrizio Spini
08/11/2025, 8:51 AMkapa.ai
08/11/2025, 8:51 AMkapa.ai
08/11/2025, 8:51 AMMERGE statement in BigQuery for deduplication, but it does clarify that deduplication is performed so that only the latest record per primary key is present in the final table. The actual implementation may vary by destination, but the key difference is: - +DEDUPED: The final table is deduplicated (one row per primary key, latest version). - NOT DEDUPED: All rows are inserted, including duplicates and historical versions. If you need strict deduplication in BigQuery, use the +DEDUPED mode. If you want to keep all historical changes, use the NOT DEDUPED mode. > "The deduped variant also means that the data in the final table will be unique per primary key... This is determined by sorting the data using the cursor field and keeping only the latest de-duplicated data row." [Full Refresh - Overwrite + Deduped](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/full-refresh-overwrite-deduped) > "In the data warehouse, just like in incremental - Append, multiple rows for the same primary key can be found in the history table. The unique records per primary key behavior is mirrored in the final table with incremental deduped sync mode." [Incremental Sync - Append + Deduped](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append-deduped)