<@U04S8PLJWMT> using the msssql source connector w...
# ask-ai
j
@kapa.ai using the msssql source connector with cdc, can i set the snapshot to never?
k
Short answer: no—based on the docs and issues provided, the MSSQL CDC source performs an initial snapshot when CDC is enabled, and there isn’t documented support to set Debezium’s snapshot mode to “never” for MSSQL in Airbyte. The logs and discussions show initial snapshots happening (e.g., Debezium showing snapshot.mode = initial) and requirements like enabling snapshot isolation specifically to support that initial snapshot. [[MSSQL CDC](https://docs.airbyte.com/integrations/sources/mssql#change-data-capture-cdc); [CDC setup](https://docs.airbyte.com/integrations/sources/mssql#setting-up-cdc-for-mssql); [Issue 18860](https://github.com/airbytehq/airbyte/issues/18860)] If you need to avoid the initial snapshot, the knowledge sources don’t document a supported “snapshot = never” option for MSSQL CDC in Airbyte. [[Issue 18860](https://github.com/airbytehq/airbyte/issues/18860); [CDC setup](https://docs.airbyte.com/integrations/sources/mssql#setting-up-cdc-for-mssql)]
j
@kapa.ai the problem is that my refresh streams take very long presumably because airbyte does not resume from the debezium saved LSN
k
A message from kapa.ai
It’s likely you’re hitting a known CDC state/LSN persistence issue rather than a true “resume” failure in Debezium itself. What we know from the sources: - For Postgres, multiple reports show the “final CDC state” sometimes isn’t saved, causing the next run to start before the last saved LSN (or to trigger a full re-sync). Users see logs like “Saved offset is before Replication slot’s confirmed_flush_lsn” and need to switch InvalidCdcCursorPositionBehaviour to “Re-sync data” as a workaround, or revert connector versions. [[CDC not working](https://github.com/airbytehq/airbyte/issues/47547); [Confirmed flush > saved state](https://github.com/airbytehq/airbyte/issues/55846)] - Heartbeat queries can help low-traffic cases ensure progress and proper final state saving in Postgres. [[CDC not working workaround](https://github.com/airbytehq/airbyte/issues/47547)] - On Azure PG failover, losing the replication slot forces a full refresh and can cause gaps; users asked for ways to start from the last consumed LSN. [[Azure failover data loss](https://github.com/airbytehq/airbyte/issues/29333)] - For MSSQL, long idle runs and heartbeat behavior can cause prolonged syncs when there’s no change activity; there are open issues around heartbeat handling and “idle” loops. [[MSSQL heartbeat loop](https://github.com/airbytehq/airbyte/issues/60304); [Slow when no changes](https://github.com/airbytehq/airbyte/issues/51475)] Actionable steps to mitigate: - If Postgres: try enabling a Debezium heartbeat query that updates a table in the publication to ensure periodic CDC events and correct final state writes. Users report it stabilizes state saving and LSN progress. [[CDC not working workaround](https://github.com/airbytehq/airbyte/issues/47547)] - If Postgres: as a temporary workaround, set InvalidCdcCursorPositionBehaviour to “Re-sync data” for one run to realign, then switch back; some users also reverted to source-postgres 3.6.18 to avoid the regression. [[CDC not working](https://github.com/airbytehq/airbyte/issues/47547); [Confirmed flush > saved state](https://github.com/airbytehq/airbyte/issues/55846)] - If MSSQL: reduce long idle waits by tuning the initial wait/heartbeat behavior; current open issues show cases where heartbeats don’t advance and runs linger until a change occurs. There isn’t a definitive fix in the sources, but being aware and shortening the wait can help. [[MSSQL heartbeat loop](https://github.com/airbytehq/airbyte/issues/60304); [Slow when no changes](https://github.com/airbytehq/airbyte/issues/51475)] - Ensure sufficient CDC retention so your saved offset doesn’t fall out of range during long gaps, which otherwise forces re-syncs. [[Extend CDC retention](https://docs.airbyte.com/integrations/sources/mssql#4-extend-the-retention-period-of-cdc-data); [MSSQL out-of-range after retention](https://github.com/airbytehq/airbyte/issues/37772)] If you can share your source (Postgres vs MSSQL), connector version, and whether you use a heartbeat, I can point to the most relevant workaround from the above.
j
@kapa.ai what is the ideal or default Initial Load Timeout in Hours (Advanced) under the mssql cdc settings?
k
A message from kapa.ai
The docs list “Initial Load Timeout” for MSSQL CDC and say it can be configured between 4–24 hours, with a default of 8 hours. [[SAP HANA CDC](https://docs.airbyte.com/integrations/enterprise-connectors/source-sap-hana#change-data-capture-cdc); [MSSQL changelog](https://docs.airbyte.com/integrations/sources/mssql#changelog)] I’m sorry, but the MSSQL source page itself doesn’t explicitly restate the default in its CDC section; however, related connector docs and logs indicate Airbyte caps initial load timeout at 24 hours, and defaults commonly to 8 hours. [[MSSQL changelog](https://docs.airbyte.com/integrations/sources/mssql#changelog); [Initial load timeout issue](https://github.com/airbytehq/airbyte/issues/47448)]
j
@kapa.ai is there any down sides to setting initial wait time to 1hr?
k
A message from kapa.ai
Short answer: it can make “no-change” or idle syncs take longer to finish, and can mask issues. Details from the sources: - A longer initial CDC wait means the connector will keep waiting before concluding there’s nothing to read; this slows zero-record or low-activity runs. Guidance for Postgres/MySQL explicitly warns that increasing the initial wait time results in slower syncs when there are no changes. [[PG troubleshooting](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time); [MySQL troubleshooting](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#advanced-setting-up-initial-cdc-waiting-time)] - For MSSQL, there are open issues showing long idle periods when there are no changes; longer waits can prolong these idle runs, especially around heartbeat handling. [[MSSQL slow when no changes](https://github.com/airbytehq/airbyte/issues/51475); [Heartbeat loop](https://github.com/airbytehq/airbyte/issues/60304)] When to consider increasing it: - If the source has lots of CDC to scan or slow startup, more time can prevent premature timeouts. Users sometimes increase related “initial waiting time” to avoid timeouts locating the resume position. [[PG WAL wait time example](https://github.com/airbytehq/airbyte/issues/50435)] Trade-off: - Faster completes when no data if you keep it shorter; more robustness to heavy backlogs if you set it longer. There’s no MSSQL doc explicitly prescribing 1 hour; adjust based on your change volume and tolerance for idle run duration. [[MSSQL CDC doc](https://docs.airbyte.com/integrations/sources/mssql#change-data-capture-cdc); [MSSQL idle behavior issues](https://github.com/airbytehq/airbyte/issues/51475; https://github.com/airbytehq/airbyte/issues/60304)]