Class ProjectionRebuildOptions
- Namespace
- Excalibur.EventSourcing.Projections
- Assembly
- Excalibur.EventSourcing.dll
Configuration options for projection rebuild operations.
public sealed class ProjectionRebuildOptions
- Inheritance
-
ProjectionRebuildOptions
- Inherited Members
Properties
BatchDelay
Gets or sets the delay between batches to reduce load.
public TimeSpan BatchDelay { get; set; }
Property Value
- TimeSpan
The batch delay. Default is 10 milliseconds.
BatchSize
Gets or sets the number of events to process per batch during rebuild.
[Range(1, 100000)]
public int BatchSize { get; set; }
Property Value
- int
The batch size. Default is 500.
MaxParallelism
Gets or sets the maximum number of concurrent rebuilds in this service instance.
[Range(1, 32)]
public int MaxParallelism { get; set; }
Property Value
- int
The parallelism degree. Default is 1 (sequential).
Remarks
Queued calls honor cancellation. This process-local limit does not coordinate other hosts or limit continuous projection processing. Size the aggregate host limits to leave database capacity for live traffic.
OfflineRebuildAcknowledged
Gets or sets explicit acknowledgement that this in-place rebuild runs offline and exclusively.
public bool OfflineRebuildAcknowledged { get; set; }
Property Value
- bool
False by default. Set true only after stopping and draining every writer and other rebuild process for the entire operation.
Remarks
This is an operator prerequisite, not a distributed lock. For online changes, populate a separate versioned destination and switch readers through the generation cutover gate.
RebuildOnStartup
Gets or sets a value indicating whether to rebuild on application startup.
public bool RebuildOnStartup { get; set; }