<@U04S8PLJWMT> what is wrong when my CDC sync from...
# ask-ai
p
@kapa.ai what is wrong when my CDC sync from mysql to snowflake is taking an insane amount of time between extracting and loading? It is doing a lot of this: 2025-09-03 050059 destination INFO pool-35-thread-4 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):137 Flush Worker (5424f) -- Worker picked up work. 2025-09-03 050059 destination INFO pool-36-thread-1 i.a.c.i.d.a.DetectStreamToFlush(getNextStreamToFlush):119 flushing: trigger info: src_as_built - home_battery_host_device_modems, time trigger: true , size trigger: false current threshold b: 200 MB, queue size b: 703 bytes, penalty b: 0 bytes, after penalty b: 703 bytes 2025-09-03 050059 destination INFO pool-35-thread-4 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):143 Flush Worker (5424f) -- Attempting to read from queue namespace: src_as_built, stream: home_battery_host_devices. 2025-09-03 050059 destination INFO pool-35-thread-1 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):137 Flush Worker (4c2ad) -- Worker picked up work. 2025-09-03 050059 destination INFO pool-35-thread-1 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):143 Flush Worker (4c2ad) -- Attempting to read from queue namespace: src_as_built, stream: home_battery_installations. 2025-09-03 050059 destination INFO pool-36-thread-1 i.a.c.i.d.a.DetectStreamToFlush(getNextStreamToFlush):119 flushing: trigger info: src_as_built - home_battery_bms_modems, time trigger: true , size trigger: false current threshold b: 200 MB, queue size b: 673 bytes, penalty b: 0 bytes, after penalty b: 673 bytes 2025-09-03 050059 destination INFO pool-35-thread-4 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 10482829 bytes.. 2025-09-03 050059 destination INFO pool-35-thread-3 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):137 Flush Worker (690cb) -- Worker picked up work. 2025-09-03 050059 destination INFO pool-35-thread-3 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):143 Flush Worker (690cb) -- Attempting to read from queue namespace: src_as_built, stream: home_battery_host_device_modems. 2025-09-03 050059 destination INFO pool-36-thread-1 i.a.c.i.d.a.DetectStreamToFlush(getNextStreamToFlush):119 flushing: trigger info: src_as_built - home_battery_bms, time trigger: true , size trigger: false current threshold b: 200 MB, queue size b: 649 bytes, penalty b: 0 bytes, after penalty b: 649 bytes 2025-09-03 050059 destination INFO pool-35-thread-1 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 10484504 bytes.. 2025-09-03 050059 destination INFO pool-35-thread-4 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):161 Flush Worker (5424f) -- Batch contains: 3 records, 2.86 KB bytes. 2025-09-03 050059 destination INFO pool-35-thread-3 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 10485057 bytes.. 2025-09-03 050059 destination INFO pool-35-thread-3 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):161 Flush Worker (690cb) -- Batch contains: 1 records, 703 bytes bytes. 2025-09-03 050059 destination INFO pool-35-thread-5 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):137 Flush Worker (17cf9) -- Worker picked up work. 2025-09-03 050059 destination INFO pool-35-thread-5 i.a.c.i.d.a.FlushWorkers(flush$lambda$6):143 Flush Worker (17cf9) -- Attempting to read from queue namespace: src_as_built, stream: home_battery_bms_modems. 2025-09-03 050059 destination INFO pool-35-thread-5 i.a.c.i.d.a.GlobalMemoryManager(free):78 Freeing 10485087 bytes.. I am using connector versions 3.11.21 for mysql and 3.15.10 for snowflake
k
It’s likely destination-side backpressure and tiny flush batches causing the slowdown. Your logs show Snowflake flush workers waking up on the time trigger and flushing very small batches (e.g., 1–3 records, <3 KB), which leads to constant staging/flush overhead and long end-to-end time even if extraction is fast. This pattern matches known bottlenecks where the destination’s buffering/flush behavior throttles CDC throughput, especially when many streams are active concurrently (default limited parallelism per destination) and checkpoints are infrequent in CDC flows ([Postgres CDC thread but same destination dynamics apply](https://discuss.airbyte.io/t/4373) — recommendation was to raise the Snowflake buffer and limit concurrent streams) ([Postgres CDC connector stuck…](https://discuss.airbyte.io/t/4373)). Airbyte team has also acknowledged CDC instability/performance quirks in MySQL→Snowflake scenarios and destination-side issues around raw table/staging/flush timing in past threads ([MySQL→Snowflake race/flush issues](https://discuss.airbyte.io/t/1426), [CDC instability note](https://discuss.airbyte.io/t/1426)). What to try: - Increase Snowflake destination buffer parameter (e.g., to 50) so workers accumulate larger batches before flushing, reducing overhead ([Postgres CDC thread recommendation](https://discuss.airbyte.io/t/4373)). - Reduce the number of concurrent CDC streams per connection (or split into multiple connections) so the destination isn’t round-robin flushing many tiny queues ([same thread guidance](https://discuss.airbyte.io/t/4373)). - Use internal staging for Snowflake if you’re on external S3 staging; internal staging has been recommended in similar MySQL→Snowflake cases and can avoid staging/creation timing issues ([MySQL→Snowflake CDC threads](https://discuss.airbyte.io/t/1426), [failing to ingest big MySQL table](https://discuss.airbyte.io/t/1324)). If after tuning you still see very small “Batch contains: n records … KB” repeatedly, the destination is still time-triggering before size thresholds; raise thresholds/buffer further or reduce active streams so queues can build to size-triggered flushes. The knowledge sources don’t provide an exact config key list here, but they consistently point to destination buffer sizing and stream concurrency as the levers to fix this pattern.
p
@kapa.ai where can I find the buffer parameter? I am using self hosted airbyte v1.?
k
A message from kapa.ai
I’m sorry, but the knowledge sources don’t provide an exact UI path or setting name for a “buffer parameter” in the Snowflake destination on self-hosted v1.x. They do mention that increasing the Snowflake destination buffer (set “to 50”) helped throughput in CDC scenarios and recommend limiting the number of tables per connection, but they don’t show where this parameter appears in the product UI or its exact field name ([Postgres CDC thread guidance](https://discuss.airbyte.io/t/4373)). Given the lack of precise docs here: - Check your Snowflake destination’s configuration form for optional/performance-related fields (possibly under Optional fields/advanced settings). If present, raise the buffer-related value as suggested in the thread (to 50) ([Postgres CDC thread guidance](https://discuss.airbyte.io/t/4373)). - If you can’t find such a field, the sources don’t document it further; consider splitting streams across multiple connections to reduce destination backpressure as also advised ([Postgres CDC thread guidance](https://discuss.airbyte.io/t/4373)). If you share a screenshot of your Snowflake destination settings, I can help identify the right field based on what’s visible.