Method Reduce
Reduce(string, string, bool?, bool?)
A reduce map-reduce output options.
[Obsolete("Use an overload of Reduce that does not have sharded and nonAtomic parameters instead.")]
public static MapReduceOutputOptions Reduce(string collectionName, string databaseName = null, bool? sharded = null, bool? nonAtomic = null)
Parameters
collectionName
stringThe name of the collection.
databaseName
stringThe name of the database.
sharded
bool?Whether the output collection should be sharded.
nonAtomic
bool?Whether the server should not lock the database for the duration of the reduce.
Returns
- MapReduceOutputOptions
A reduce map-reduce output options.
Reduce(string, string)
A reduce map-reduce output options.
public static MapReduceOutputOptions Reduce(string collectionName, string databaseName)
Parameters
Returns
- MapReduceOutputOptions
A reduce map-reduce output options.