Class ParallelWriteOptions
Configures the parallel record writes of ParallelSheetWriterExtensions.
public sealed class ParallelWriteOptions
- Inheritance
-
ParallelWriteOptions
- Inherited Members
Properties
BatchRows
Gets the number of rows per batch. Each batch in flight holds its formatted rows and their compressed form, so this and DegreeOfParallelism bound the memory used.
public int BatchRows { get; init; }
Property Value
Default
Gets the default options: one batch in flight per processor, 8,192 rows per batch.
public static ParallelWriteOptions Default { get; }
Property Value
DegreeOfParallelism
Gets the most batches formatted and compressed at once. 0, the default, means
ProcessorCount. With 1 the batches run on the calling flow,
without the thread pool.
public int DegreeOfParallelism { get; init; }