Optional
chunkThe number of records to upload per request. Defaults to 50.
If you have large records, you may find it beneficial to reduce this number and increase concurrency to improve throughput. Leave it unspecified (recommended) to use the system default.
50
Optional
concurrencyThe maximum number of concurrent requests to make at once.
Optional
maxThis temporary error-ing property exists for migration convenience, and will be removed in a future version.
maxTimeMS
option is no longer available; the timeouts system has been overhauled, and timeouts should now be set using timeout
, and defaults in timeoutDefaults
. You may generally Ctrl+R replace maxTimeMS
with timeout
to retain the same behavior.Optional
orderedIf false
, the records are inserted in an arbitrary order. If an error occurs, the operation does not stop
and the remaining records are inserted. This allows the operation to be parallelized for better performance.
Optional
timeoutThe method timeout override.
See TimeoutDescriptor for much more information.
Optional
vectorThis temporary error-ing property exists for migration convenience, and will be removed in a future version.
$vector
field in the docs directly.Optional
vectorizeThis temporary error-ing property exists for migration convenience, and will be removed in a future version.
$vectorize
field in the docs directly.
Overview
The options for a generic
insertMany
command performed on the Data API whenordered
istrue
.Example
See
GenericInsertManyOptions