You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/03/25 08:52:01 UTC
[GitHub] [flink] docete commented on issue #11499:
[FLINK-16681][Connectors/JDBC]Jdbc JDBCOutputFormat and JDBCLookupFunction
PreparedStatement loss connection, if long time not records to write.
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:
users@infra.apache.org
With regards,
Apache Git Services