Rafael Felipe
08/05/2025, 6:59 PMfetchSize to control batch sizeskapa.ai
08/05/2025, 6:59 PMfetchSize parameter in Airbyte controls the number of records fetched in each batch from the source database during sync operations. This batching mechanism is used by JDBC-based connectors (such as Postgres, MySQL, and Snowflake) to optimize data transfer and manage memory usage. - Dynamic fetchSize: Airbyte has implemented dynamic computation of fetchSize in recent connector versions, aiming to balance throughput and memory usage. However, several users have reported that, in practice, the actual fetch size often remains at the default (e.g., 1000 rows for Postgres/MySQL), and changing it does not always lead to significant performance improvements. The impact of fetchSize on performance can be limited by other factors, such as network speed, database load, or the number of columns in the table. In some cases, increasing resources or parallelizing jobs may be more effective for improving sync speed than adjusting fetchSize alone [MySQL source connector performance](https://discuss.airbyte.io/t/1092), [Optimized Postgres source connector performance](https://discuss.airbyte.io/t/1984), [Sync performance](https://discuss.airbyte.io/t/1578). - Manual configuration: As of now, it is generally not possible to manually configure fetchSize via the Airbyte UI or connector settings; it is managed internally by Airbyte. Some users have attempted to modify connector code to set a fixed fetchSize, but results have been mixed, and this is not officially supported [Optimized Postgres source connector performance](https://discuss.airbyte.io/t/1984), [Sync performance](https://discuss.airbyte.io/t/1578). - Effect on batch size: The fetchSize parameter directly determines the batch size for each request to the source database. For example, a fetchSize of 1000 means each batch will contain 1000 records. This can help control memory usage and API/database load, but may not always be the main bottleneck for sync speed. - Other connectors: Some connectors (e.g., Google Sheets) allow you to set a batch size parameter directly in the UI, which controls how many rows are processed per request [Google Sheets source setup](https://docs.airbyte.com/integrations/sources/google-sheets#for-airbyte-open-source). In summary, fetchSize is used to control batch sizes in Airbyte's JDBC connectors, but its impact on performance may be limited by other factors, and manual configuration is generally not available through the UI. If you are experiencing slow syncs, it is recommended to identify the bottleneck (source, destination, network, or resource limits) before focusing on fetchSize adjustments.