2 using System.Collections.Generic;
28 public int NumStripes {
get;
set; } = Environment.ProcessorCount;
34 public int MaxFlushWorkers {
get;
set; } = Math.Max(4, Environment.ProcessorCount * 2);
int NumStripes
Number of stripes per worker queue to reduce lock contention.
int BatchSize
Number of records per batch before triggering a flush.
int MaxErrorQueueSize
Maximum number of errors to queue before discarding.
A list of worker URLs to use for multi-head operations.
BulkInserterOptions Clone()
Creates a copy of these options.
BulkInserterOptions()
Creates options with default values.
Utils.? WorkerList WorkerList
Optional worker list override.
BulkInserterOptions(int batchSize)
Creates options with specified batch size.
Dictionary< string, string > InsertOptions
Options to pass to the insert_records API.
IBatchInsertionListener? BatchListener
Optional batch insertion listener for callbacks on batch completion.
int FlushIntervalSeconds
Interval in seconds between automatic flushes.
int MaxInFlightBatches
Maximum number of batches that can be in-flight at once.
int MaxFlushWorkers
Maximum number of concurrent flush workers.
int CloseTimeoutMs
Timeout for close operations in milliseconds.
Configuration options for the BulkInserter<T>.
int MaxRetries
Maximum number of retry attempts for failed inserts.
Listener interface for batch insertion events.