DanielLeens commented on PR #13604: URL: https://github.com/apache/seatunnel/pull/13604#issuecomment-7238399329
## Implementation Notes and Trade-offs Head: `5726d1593564ab1507161bdee611b2f522dc9c2e` The existing JDBC sink guide only mentions batch SQL rewriting. The selected fix adds an explicit MySQL non-XA tuning section to the two existing English/Chinese pages. JDBC already forwards these URL settings to Connector/J, so the change belongs in the connection guidance; it does not need a new SeaTunnel option, driver dependency or runtime branch. The example combines batch_size=1000 with server-side preparation, caching, a small per-connection entry limit and an explicit SQL-length limit. The driver source and vendor references confirm that rewritten INSERT SQL can exceed the cache eligibility length. Cache size/SQL length remain workload choices; the text asks readers to account for connection/writer concurrency, memory, packet size and server prepared-statement limits. It preserves the rest of the job and does not select a transaction/XA policy. I evaluated changing driver defaults or automatically injecting these flags and did not use that approach: the diagnostic server-preparation profile with the default short SQL limit slowed both tools, and existing jobs must retain their current configuration and semantics. Reimplementing #13589's row-layout cache would duplicate existing runtime work; this PR contains none of that candidate. The remaining assumption is workload/driver suitability, so the guide makes no universal throughput guarantee. Validation: root-only Spotless and quiet verify exited 0; Markdown/example equality and exact two-file scope were checked separately. Full-engine fixed-dev MySQL-to-MySQL runs passed 1,000,000 x19-field reconciliation in each of three alternating pairs, with measured ST throughput gains 8.32%,7.98%,8.22%. The 1001-row tail and a separate sink-only diagnostic also passed. One independent Maintainer reviewed the unchanged two-file diff and evidence with no blockers. The PR description records all source/runtime pins, settings, timings and skipped checks. The unchanged UI, connector compilation/Java tests and Docker E2E were not rerun from this documentation worktree. GitHub CI is a separate gate and is not claimed passed. -- 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]
