Class BaseInsertManyOptions
Base class for insert-many operation options.
public abstract class BaseInsertManyOptions : CommandOptions
- Inheritance
-
BaseInsertManyOptions
- Derived
- Inherited Members
Fields
DefaultChunkSize
Default batch size.
public const int DefaultChunkSize = 50
Field Value
DefaultConcurrency
Default concurrency for unordered insertions.
public const int DefaultConcurrency = 20
Field Value
Properties
ChunkSize
The number of documents to insert in each batch.
public int ChunkSize { get; set; }
Property Value
Concurrency
The number of parallel processes to use while inserting documents. Must be set to 1 for ordered inserts.
public int Concurrency { get; set; }
Property Value
Ordered
Whether to insert documents in order or not.
public bool Ordered { get; set; }