docete commented on issue #11499: [FLINK-16681][Connectors/JDBC]Jdbc 
JDBCOutputFormat and JDBCLookupFunction PreparedStatement loss connection, if 
long time not records to write.
URL: https://github.com/apache/flink/pull/11499#issuecomment-603719004
 
 
   Thanks for providing this PR to solve connection loss problem. I have two 
concerns:
   (1) `JDBCOutputFormat` is deprecated. We should use 
`JdbcBatchingOutputFormat` and `TableJdbcUpsertOutputFormat` now.
   (2) Hold the JDBC connection and check whether it's valid on each writes is 
expensive and inefficiency. What about introduce a JDBC connection pool? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to