You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_docs/extensions-and-integrations/change-data-capture-extensions.adoc
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ It uses Apache Ignite’s Change Data Capture (CDC) mechanism to track data chan
348
348
- Per-cache replication (only selected caches are replicated)
349
349
- `onlyPrimary` support (replicates only from primary nodes)
350
350
- Auto table creation in PostgreSQL if needed (`createTables=true`)
351
-
- Batch replication (`maxBatchSize` and `maxCommitSize`)
351
+
- Batch replication (`batchSize`)
352
352
- User-defined `DataSource` — user configures reliability and transactional guarantees
353
353
354
354
== Configuration
@@ -366,8 +366,7 @@ Spring XML configuration example (`ignite-to-postgres.xml`):
366
366
<value>T2</value>
367
367
</list>
368
368
</property>
369
-
<property name="maxBatchSize" value="1000" />
370
-
<property name="maxCommitSize" value="100" />
369
+
<property name="batchSize" value="1024" />
371
370
<property name="onlyPrimary" value="true" />
372
371
<property name="createTables" value="true" />
373
372
<property name="dataSource" ref="dataSource" />
@@ -386,13 +385,11 @@ The following settings can be used to configure the behavior of `IgniteToPostgre
386
385
| `dataSource` | JDBC `DataSource` used to connect to the target PostgreSQL database. Must be provided by the user. | _Required_
387
386
| `caches` | Set of Ignite cache names to replicate. Must be provided by the user. | _Required_
388
387
| `onlyPrimary` | If `true`, replicates only events originating from the primary node. Useful to avoid duplicate updates in replicated clusters. | `true`
389
-
| `maxBatchSize` | Maximum number of statements per batch submitted to PostgreSQL. Affects how many rows are sent in a single `executeBatch()` call. | `1024` |
390
-
| `maxCommitSize` | Maximum number of batches executed before committing the current transaction (when auto-commit is disabled). Controls how many `executeBatch()` calls are grouped into one transaction. | `10` |
391
-
| `autoCommit` | If `true`, each batch is committed immediately after submission. If false, batches accumulate and are committed by the connector after finishing the last WAL segment | `false`
388
+
| `maxBatchSize` | Maximum number of statements per batch submitted to PostgreSQL. Affects how many rows are commited in a single `executeBatch()` call. | `1024` |
392
389
| `createTables`| If `true`, missing target tables in PostgreSQL will be created automatically during startup.| `false`
393
390
|===
394
391
395
-
If `autoCommit` is disabled (`false`), batches are accumulated and committed either manually or by the connector after processing a group of batches. If `autoCommit` is enabled (`true`), each batch is committed immediately, and `maxCommitSize` has no effect.
392
+
We use `PreparedStatement` for batching with `autoCommit` set to `false`, committing manually after each batch execution.
0 commit comments