Configuration
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | yes | — | JDBC connection URL |
user | string | yes | — | Database user |
password | string | yes | — | Database password |
batch_size | int | no | 1,000 | Rows per batch insert |
flush_interval_ms | long | no | 5,000 | Max time (ms) between flushes |
How It Works
- Rows are buffered in memory as they arrive from the pipeline.
- When the buffer reaches
batch_sizeorflush_interval_mselapses since the last flush, a batchINSERTexecutes against the target table. - The
INSERTSQL is dynamically generated from the field names present in each row. - All column names are automatically quoted in the generated SQL to handle PostgreSQL reserved words such as
user,from, andorder.