Skip to content

Commit 8e84f65

Browse files
committed
* maxCommitSize setting removed
1 parent a5b6ac4 commit 8e84f65

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 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` and `maxCommitSize`)
351+
- Batch replication (`batchSize`)
352352
- User-defined `DataSource` — user configures reliability and transactional guarantees
353353

354354
== Configuration
@@ -366,8 +366,7 @@ Spring XML configuration example (`ignite-to-postgres.xml`):
366366
<value>T2</value>
367367
</list>
368368
</property>
369-
<property name="maxBatchSize" value="1000" />
370-
<property name="maxCommitSize" value="100" />
369+
<property name="batchSize" value="1024" />
371370
<property name="onlyPrimary" value="true" />
372371
<property name="createTables" value="true" />
373372
<property name="dataSource" ref="dataSource" />
@@ -386,13 +385,11 @@ The following settings can be used to configure the behavior of `IgniteToPostgre
386385
| `dataSource` | JDBC `DataSource` used to connect to the target PostgreSQL database. Must be provided by the user. | _Required_
387386
| `caches` | Set of Ignite cache names to replicate. Must be provided by the user. | _Required_
388387
| `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` |
392389
| `createTables`| If `true`, missing target tables in PostgreSQL will be created automatically during startup.| `false`
393390
|===
394391

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

397394

398395
[WARNING]

0 commit comments

Comments
 (0)