Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-34014

Jdbc connector can avoid send empty insert to database when there's no buffer data

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              jeyhunkarimov Jeyhun Karimov
              luoyuxia luoyuxia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: