Skip to content

Commit 24990a5

Browse files
committed
IGNITE-25774 maxCommitSize setting
1 parent d0e9b12 commit 24990a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/_docs/extensions-and-integrations/change-data-capture-extensions.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ It uses Apache Ignite’s Change Data Capture (CDC) mechanism to track data chan
348348
- Per-cache replication (only selected caches are replicated)
349349
- `onlyPrimary` support (replicates only from primary nodes)
350350
- Auto table creation in PostgreSQL if needed (`createTables=true`)
351-
- Batch replication (`maxBatchSize`)
351+
- Batch replication (`maxBatchSize` and `maxCommitSize`)
352352
- User-defined `DataSource` — user configures reliability and transactional guarantees
353353

354354
== Configuration
@@ -367,6 +367,7 @@ Spring XML configuration example (`ignite-to-postgres.xml`):
367367
</list>
368368
</property>
369369
<property name="maxBatchSize" value="1000" />
370+
<property name="maxCommitSize" value="100" />
370371
<property name="onlyPrimary" value="true" />
371372
<property name="createTables" value="true" />
372373
<property name="dataSource" ref="dataSource" />
@@ -385,12 +386,13 @@ The following settings can be used to configure the behavior of `IgniteToPostgre
385386
| `dataSource` | JDBC `DataSource` used to connect to the target PostgreSQL database. Must be provided by the user. | _Required_
386387
| `caches` | Set of Ignite cache names to replicate. Must be provided by the user. | _Required_
387388
| `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` |
389391
| `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`
390392
| `createTables`| If `true`, missing target tables in PostgreSQL will be created automatically during startup.| `false`
391393
|===
392394

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.
394396

395397

396398
[WARNING]

0 commit comments

Comments
 (0)