[
https://issues.apache.org/jira/browse/FLINK-34014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17830948#comment-17830948
]
Sergey Nuyanzin commented on FLINK-34014:
-----------------------------------------
Merged as
[ffd2bdf887d997a6080f3a3bdba31a92b969e1e0|https://github.com/apache/flink-connector-jdbc/commit/ffd2bdf887d997a6080f3a3bdba31a92b969e1e0]
> Jdbc connector can avoid send empty insert to database when there's no buffer
> data
> ----------------------------------------------------------------------------------
>
> Key: FLINK-34014
> URL: https://issues.apache.org/jira/browse/FLINK-34014
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / JDBC
> Reporter: luoyuxia
> Assignee: Jeyhun Karimov
> Priority: Major
> Labels: pull-request-available
>
> In jdbc connector, we will have a background thread to flush buffered data to
> database, but when no data is in buffer, we can avoid the flush to database.
> we can avoid it in method JdbcOutputFormat#attemptFlush or in
> JdbcBatchStatementExecutor like TableBufferedStatementExecutor which can
> aovid calling {{statementExecutor.executeBatch()}} when buffer is empty
--
This message was sent by Atlassian Jira
(v8.20.10#820010)