DBZ-7750: Set default for max.iteration.transactions to 500

This commit is contained in:
rajdangwal 2024-04-05 17:20:55 +05:30 committed by Jiri Pechanec
parent a00a165bce
commit 3a8421ba4a
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ public class SqlServerConnectorConfig extends HistorizedRelationalDatabaseConnec
public static final String MAX_TRANSACTIONS_PER_ITERATION_CONFIG_NAME = "max.iteration.transactions";
protected static final int DEFAULT_PORT = 1433;
protected static final int DEFAULT_MAX_TRANSACTIONS_PER_ITERATION = 0;
protected static final int DEFAULT_MAX_TRANSACTIONS_PER_ITERATION = 500;
private static final String READ_ONLY_INTENT = "ReadOnly";
private static final String APPLICATION_INTENT_KEY = "database.applicationIntent";
private static final int DEFAULT_QUERY_FETCH_SIZE = 10_000;

View File

@ -3187,10 +3187,10 @@ No entry is created for the signal to close the snapshot window.
Set this option to prevent rapid growth of the signaling data collection.
|[[sqlserver-property-max-iteration-transactions]]<<sqlserver-property-max-iteration-transactions, `+max.iteration.transactions+`>>
|0
|500
|Specifies the maximum number of transactions per iteration to be used to reduce the memory footprint when streaming changes from multiple tables in a database.
When set to `0` (the default), the connector uses the current maximum LSN as the range to fetch changes from.
When set to a value greater than zero, the connector uses the n-th LSN specified by this setting as the range to fetch changes from.
When set to `0`, the connector uses the current maximum LSN as the range to fetch changes from.
When set to a value greater than zero, the connector uses the n-th LSN specified by this setting as the range to fetch changes from. Defaults to 500.
|[[sqlserver-property-incremental-snapshot-option-recompile]]<<sqlserver-property-incremental-snapshot-option-recompile, `+incremental.snapshot.option.recompile+`>>
|`false`