<@U04S8PLJWMT> What are the best practices when sy...
# ask-ai
a
@kapa.ai What are the best practices when syncing from a mysql source? We have about 700 tables in the mysql schema. The tables range in size from a few MB to 3 TB.
k
Based on the knowledge sources, here are the best practices for syncing from a MySQL source with a large number of tables: ## Split Tables into Multiple Connections For large-scale MySQL syncs with many tables, it's recommended to split tables into multiple connections rather than syncing all 700 tables in a single connection. This helps avoid hitting maximum message size limits and improves reliability. As mentioned in a [forum discussion about MySQL to Snowflake syncing](https://discuss.airbyte.io/t/2740), splitting tables into 2 or more connections can help prevent failures related to the
StandardSyncInput
size. ## Resource Considerations For syncing large amounts of data, ensure adequate resources: - Memory: At least 16GB of RAM is recommended for an Airbyte instance handling large MySQL syncs, as noted in a [forum post about ingesting huge amounts of data](https://discuss.airbyte.io/t/561) - Syncs leverage memory buffering, so insufficient memory can cause issues ## Performance Optimization According to a [discussion on MySQL connector performance](https://discuss.airbyte.io/t/1092): - The MySQL connector uses dynamic
fetchSize
computation for batch fetching - Network conditions typically don't significantly impact sync speed - Performance can vary based on database load and available resources ## CDC (Change Data Capture) Considerations If using CDC for incremental syncs with very large tables: 1. Binlog Retention: Ensure sufficient binlog retention time. For tables that take longer than your binlog retention period to complete initial load, you may need to increase retention or use alternative strategies, as discussed in [this forum post about syncing 10B+ row tables](https://discuss.airbyte.io/t/3783) 2. Initial Load Timeout: For large databases, adjust the Initial Load Timeout setting. According to [CDC best practices](https://docs.airbyte.com/platform/understanding-airbyte/cdc-best-practices#source-configuration): - Large databases: 12-24 hours - Very large databases (> 50 GB): 24 hours maximum ## Schema Discovery Be aware that with 700 tables, the schema discovery process may exceed catalog size limits, as mentioned in [this forum discussion](https://discuss.airbyte.io/t/2656). Splitting tables across multiple connections can help mitigate this issue.