Configuration options for the BulkInserter<T>. More…
Public Member Functions | |
| BulkInserterOptions () | |
| Creates options with default values. | |
| BulkInserterOptions (int batchSize) | |
| Creates options with specified batch size. | |
| BulkInserterOptions | Clone () |
| Creates a copy of these options. | |
| BulkInserterOptions () | |
| Creates options with default values. | |
| BulkInserterOptions (int batchSize) | |
| Creates options with specified batch size. | |
| BulkInserterOptions | Clone () |
| Creates a copy of these options. | |
Properties | |
| int | BatchSize = 10_000 [get, set] |
| Number of records per batch before triggering a flush. | |
| int | MaxInFlightBatches = 100 [get, set] |
| Maximum number of batches that can be in-flight at once. | |
| int | NumStripes = Environment.ProcessorCount [get, set] |
| Number of stripes per worker queue to reduce lock contention. | |
| int | MaxFlushWorkers = Math.Max(4, Environment.ProcessorCount * 2) [get, set] |
| Maximum number of concurrent flush workers. | |
| int | MaxRetries = 3 [get, set] |
| Maximum number of retry attempts for failed inserts. | |
| int | FlushIntervalSeconds = 0 [get, set] |
| Interval in seconds between automatic flushes. | |
| Dictionary< string, string > | InsertOptions = new() [get, set] |
| Options to pass to the insert_records API. | |
| IBatchInsertionListener? | BatchListener [get, set] |
| Optional batch insertion listener for callbacks on batch completion. | |
| Utils.? WorkerList | WorkerList [get, set] |
| Optional worker list override. | |
| int | MaxErrorQueueSize = 10_000 [get, set] |
| Maximum number of errors to queue before discarding. | |
| int | CloseTimeoutMs = 60_000 [get, set] |
| Timeout for close operations in milliseconds. | |
Detailed Description
Configuration options for the BulkInserter<T>.
Definition at line 6 of file BulkInserterOptions.cs.
Constructor & Destructor Documentation
◆ BulkInserterOptions() [1/4]
| inline |
Creates options with default values.
Definition at line 77 of file BulkInserterOptions.cs.
◆ BulkInserterOptions() [2/4]
| inline |
Creates options with specified batch size.
Definition at line 82 of file BulkInserterOptions.cs.
◆ BulkInserterOptions() [3/4]
| inline |
Creates options with default values.
Definition at line 77 of file BulkInserterOptions.cs.
◆ BulkInserterOptions() [4/4]
| inline |
Creates options with specified batch size.
Definition at line 82 of file BulkInserterOptions.cs.
Member Function Documentation
◆ Clone() [1/2]
| inline |
Creates a copy of these options.
Definition at line 90 of file BulkInserterOptions.cs.
◆ Clone() [2/2]
| inline |
Creates a copy of these options.
Definition at line 90 of file BulkInserterOptions.cs.
Property Documentation
◆ BatchListener
| getset |
Optional batch insertion listener for callbacks on batch completion.
Definition at line 55 of file BulkInserterOptions.cs.
◆ BatchSize
| getset |
Number of records per batch before triggering a flush.
Default: 10,000. Recommended range: 5,000 - 50,000.
Definition at line 12 of file BulkInserterOptions.cs.
◆ CloseTimeoutMs
| getset |
Timeout for close operations in milliseconds.
Default: 60,000 (60 seconds).
Definition at line 72 of file BulkInserterOptions.cs.
◆ FlushIntervalSeconds
| getset |
Interval in seconds between automatic flushes.
Set to 0 to disable timed flushing. Default: 0 (disabled).
Definition at line 44 of file BulkInserterOptions.cs.
◆ InsertOptions
| getset |
Options to pass to the insert_records API.
Common options: UPDATE_ON_EXISTING_PK, IGNORE_EXISTING_PK, etc.
Definition at line 50 of file BulkInserterOptions.cs.
◆ MaxErrorQueueSize
| getset |
Maximum number of errors to queue before discarding.
Default: 10,000.
Definition at line 66 of file BulkInserterOptions.cs.
◆ MaxFlushWorkers
| getset |
Maximum number of concurrent flush workers.
Default: Environment.ProcessorCount * 2.
Definition at line 31 of file BulkInserterOptions.cs.
◆ MaxInFlightBatches
| getset |
Maximum number of batches that can be in-flight at once.
Used for backpressure control. Default: 100.
Definition at line 19 of file BulkInserterOptions.cs.
◆ MaxRetries
| getset |
Maximum number of retry attempts for failed inserts.
Default: 3.
Definition at line 37 of file BulkInserterOptions.cs.
◆ NumStripes
| getset |
Number of stripes per worker queue to reduce lock contention.
Default: Environment.ProcessorCount (number of CPU cores).
Definition at line 25 of file BulkInserterOptions.cs.
◆ WorkerList
| getset |
Optional worker list override.
If null, workers are auto-discovered.
Definition at line 60 of file BulkInserterOptions.cs.
The documentation for this class was generated from the following files:
- _build/public-os_ubuntu24.04-arch_amd64-cc_gcc_13.3.0/install/Kinetica/BulkInserter/BulkInserterOptions.cs
- Kinetica/BulkInserter/BulkInserterOptions.cs