BatchConfig
Configuration for batch processing.
public sealed record BatchConfig : IEquatable<BatchConfig>
Example
// Use default configuration (1000 records per batch, 3 retry passes)
var defaultConfig = new BatchConfig();
// Custom configuration for large syncs
var largeConfig = new BatchConfig(BatchSize: 5000, MaxRetryPasses: 5);
// Perform sync with custom config
var result = SyncCoordinator.Sync(
myOriginId: originId,
lastServerVersion: 0,
lastPushVersion: 0,
config: largeConfig,
...
);
Constructors
BatchConfig
public BatchConfig(int BatchSize = 1000, int MaxRetryPasses = 3)
Configuration for batch processing.
| Parameter | Type | Description |
|---|---|---|
BatchSize |
Int32 |
Number of records per batch. Default: 1000. |
MaxRetryPasses |
Int32 |
Max retry passes for deferred FK violations. Default: 3. |
Properties
BatchSize
public int BatchSize { get; init; }
Number of records per batch. Default: 1000.
MaxRetryPasses
public int MaxRetryPasses { get; init; }
Max retry passes for deferred FK violations. Default: 3.