There are a few options you can consider to speed up a MongoDB CDC backfill job: 1.
Adjust the Queue Size: The allocated queue size used to buffer Debezium events is hard coded to 10,000. Making this a configurable field could potentially improve the speed of your CDC backfill job. This is similar to what was done for the MongoDB v2 connector. However, this would require changes in the codebase. [Source](
https://github.com/airbytehq/airbyte/issues/21498) 2.
Increase Pod Resources: If you're running Airbyte on Kubernetes, you could try increasing the resources allocated to your worker pods. This could potentially speed up the processing of your CDC backfill job. For example, in a forum post, a user was advised to increase the worker memory when facing sync job failures. [Source](
https://discuss.airbyte.io/t/705) 3.
Reduce Sync Timeout: If your CDC cursor is becoming invalid due to long sync times, you could consider reducing the default sync timeout. For instance, for source-mongodb connections, it was suggested to reduce the default value from 24 hours to 6 hours to prevent users from running into an error state. [Source](
https://github.com/airbytehq/airbyte/issues/36457) Remember to monitor your system's performance and adjust these settings as necessary to find the optimal configuration for your specific use case.