luoyuxia created FLINK-34014:
--------------------------------
Summary: 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
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)