OPTIONS

parallelCollectionScan

parallelCollectionScan

New in version 2.6.

Allows applications to use multiple parallel cursors when reading all the documents from a collection, thereby increasing throughput. The parallelCollectionScan command returns a document that contains an array of cursor information.

The command has the following syntax:

{
  parallelCollectionScan: "<collection>",
  numCursors: <integer>
}

The parallelCollectionScan command takes the following fields:

Field Type Description
parallelCollectionScan string The name of the collection.
numCursors integer The maximum number of cursors to return. Must be between 1 and 10000, inclusive.
ON THIS PAGE