DanielLeens opened a new issue, #13601: URL: https://github.com/apache/seatunnel/issues/13601
## Documentation improvement The JDBC sink guide currently mentions `rewriteBatchedStatements=true` for MySQL batch jobs but does not explain how server-side preparation and prepared-statement cache sizing interact with rewritten SQL. Enabling `cachePrepStmts` can still miss the cache when generated SQL exceeds `prepStmtCacheSqlLimit` (256 by default in the tested Connector/J 8.0.33). Add an opt-in English and Chinese example that explains server preparation, cache entry count, and SQL length separately. Keep existing connection settings and measure representative row widths, batch sizes and writer concurrency. The guide should state that cache capacity is per physical connection, SQL rewriting increases SQL length, and these values are measurement starting points rather than new defaults. Source and sink effects should be measured independently when applicable. This is documentation only: no SeaTunnel option/default, JDBC dependency, data conversion, transaction boundary, XA/checkpoint behavior, or existing configuration changes. The original brief rewrite guidance came from #11483 (`ac7a5d94332`). Searches of open and closed PRs found no focused `prepStmtCacheSqlLimit` guidance. #11883 covers pool lifecycle/validation and #13589 covers row-conversion metadata caching; neither implements this driver SQL-cache sizing guide. Primary references: [Connector/J performance properties](https://dev.mysql.com/doc/connector-j/en/connector-j-connp-props-performance-extensions.html), [prepared-statement properties](https://dev.mysql.com/doc/connector-j/en/connector-j-connp-props-prepared-statements.html), and the pinned 8.0.33 driver source. Validation will include existing complete SeaTunnel/DataX engines against self-hosted MySQL 8.0.35, 1,000,000 rows with 19 fields, warmup and three alternating pairs, exact all-field reconciliation, and a partial final batch. Source and sink receive the same driver profile within each paired workload. Results will be added with their exact scope; no universal performance guarantee is proposed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
