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
+5-3Lines changed: 5 additions & 3 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`)
351
+
- Batch replication (`maxBatchSize` and `maxCommitSize`)
352
352
- User-defined `DataSource` — user configures reliability and transactional guarantees
353
353
354
354
== Configuration
@@ -367,6 +367,7 @@ Spring XML configuration example (`ignite-to-postgres.xml`):
367
367
</list>
368
368
</property>
369
369
<property name="maxBatchSize" value="1000" />
370
+
<property name="maxCommitSize" value="100" />
370
371
<property name="onlyPrimary" value="true" />
371
372
<property name="createTables" value="true" />
372
373
<property name="dataSource" ref="dataSource" />
@@ -385,12 +386,13 @@ The following settings can be used to configure the behavior of `IgniteToPostgre
385
386
| `dataSource` | JDBC `DataSource` used to connect to the target PostgreSQL database. Must be provided by the user. | _Required_
386
387
| `caches` | Set of Ignite cache names to replicate. Must be provided by the user. | _Required_
387
388
| `onlyPrimary` | If `true`, replicates only events originating from the primary node. Useful to avoid duplicate updates in replicated clusters. | `true`
388
-
| `maxBatchSize` | Maximum number of statements per batch submitted to PostgreSQL. Affects transaction commit size. | `1024`
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` |
389
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`
390
392
| `createTables`| If `true`, missing target tables in PostgreSQL will be created automatically during startup.| `false`
391
393
|===
392
394
393
-
If `autoCommit` is disabled (`false`), batches are accumulated and committed either manually or by the connector after processing a group of batches.
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.
0 commit comments