Interface BulkWriteUnorderedOptions

Options for insertMany when ordered is false.

Field

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

Field

parallel - The number of concurrent requests to use.

See

Collection.bulkWrite

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

Hierarchy (view full)

Properties

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.