Interface BulkWriteUnorderedOptions

Options for insertMany when ordered is false.


ordered - If false or unset, the documents are inserted in an arbitrary, parallelized order.


parallel - The number of concurrent requests to use.



interface BulkWriteUnorderedOptions {
    concurrency?: number;
    maxTimeMS?: number;
    ordered?: false;

Hierarchy (view full)


concurrency?: number

The number of concurrent requests to use

maxTimeMS?: number

The maximum time to wait for a response from the server, in milliseconds.

ordered?: false

If false, the operations are inserted in an arbitrary order. If an error occurs, the operation stops but the remaining operations are still executed. This allows the operations to be parallelized for better performance.