Michal Kordas
Michal Kordas

Reputation: 10925

Flink JDBC Sink and connection pool

I cannot find any info in docs about connection reusing in JDBCAppendTableSink in Flink. Should I use my own connection pool or Flink reuses connection for me? Is this really a gap in the documentation or I'm missing something?

Upvotes: 1

Views: 1023

Answers (1)

David Anderson
David Anderson

Reputation: 43454

Each instance of the sink creates a connection when the sink is created, and that connection (and a prepared statement) are then automatically reused for you.

Upvotes: 4

Related Questions