Skip to content

Commit 2fa04b4

Browse files
authored
DOC-1121 Remove snapshot_memory_safety_factor in postgres_cdc connector (#198)
1 parent 75ca77a commit 2fa04b4

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

modules/components/pages/inputs/postgres_cdc.adoc

+4-22
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ input:
2020
dsn: postgres://foouser:foopass@localhost:5432/foodb?sslmode=disable # No default (required)
2121
include_transaction_markers: true
2222
stream_snapshot: false
23-
snapshot_memory_safety_factor: 1
24-
snapshot_batch_size: 0
23+
snapshot_batch_size: 1000
2524
schema: public # No default (required)
2625
tables: [] # No default (required)
2726
checkpoint_limit: 1024
@@ -245,32 +244,15 @@ When set to `true`, this input streams a snapshot of all existing data in the so
245244
stream_snapshot: true
246245
```
247246

248-
=== `snapshot_memory_safety_factor`
249-
250-
The fraction of available memory to use for streaming the database snapshot. Decimal values between `0` and `1` represent the percentage of memory to use. For example, `0.3` would allocate 30% of the available memory. Lower values make initial streaming slower, but help prevent out-of-memory errors.
251-
252-
This option is only available when `stream_snapshot` is set to `true`. You can use either `snapshot_memory_safety_factor` or `snapshot_batch_size`, not both.
253-
254-
255-
*Type*: `float`
256-
257-
*Default*: `1`
258-
259-
```yml
260-
# Examples
261-
262-
snapshot_memory_safety_factor: 0.2
263-
```
264-
265247
=== `snapshot_batch_size`
266248

267-
The number of table rows to fetch in each batch when querying the snapshot. Leave at `0` to allow the input to determine the batch size based on the `snapshot_memory_safety_factor` value.
249+
The number of table rows to fetch in each batch when querying the snapshot.
268250

269-
This option is only available when `stream_snapshot` is set to `true`. You can use either `snapshot_batch_size` or `snapshot_memory_safety_factor`, not both.
251+
This option is only available when `stream_snapshot` is set to `true`.
270252

271253
*Type*: `int`
272254

273-
*Default*: `0`
255+
*Default*: `1000`
274256

275257
```yml
276258
# Examples

0 commit comments

Comments
 (0)