ordered - If true
, the docs are inserted sequentially; else, they're arbitrary inserted in parallel.
concurrency - The maximum number of concurrent requests to make at once.
chunkSize - The number of documents to upload per request. Defaults to 20.
maxTimeMS - The maximum time to wait for a response from the server, in milliseconds.
Collection.insertMany
Options for insertMany.
The parameters depend on the
ordered
option. Ifordered
istrue
, theparallel
option is not allowed.