Currently, INSERT, DELETE and UPDATE operations are supported.
Configuration
The configuration of the JDBC sink connector has the following properties.Property
Batch support (PostgreSQL)
When using PostgreSQL with batched writes (for example, settingbatchSize > 1), add reWriteBatchedInserts=true to the jdbcUrl so the PostgreSQL JDBC driver rewrites batched inserts for better performance.
- Example:
jdbc:postgresql://<host>:5432/<db>?reWriteBatchedInserts=true - The parameter name is case-sensitive:
reWriteBatchedInserts.
Example
Before using the JDBC sink connector, you need to create a configuration file through one of the following methods.-
JSON
-
YAML