System.Linq.ParallelMergeOptions

Namespace: System.Linq
Specifies the degree of ordering and partitioning to use when merging results from parallel operations.

Inheritance

Object
  ↳ Enum
    ↳ System.ValueType
      ↳ System.Enum
        ↳ System.Linq.ParallelMergeOptions

Enum Members

Remarks

The ParallelMergeOptions enumeration is used to control how results from parallel LINQ operations are merged. The choice of merge option can significantly impact performance and memory usage.

For example, when performing operations like OrderBy or GroupBy, the ordering of elements is crucial. The merge options allow you to specify the degree to which the system should preserve this ordering.

Default is often a good starting point, allowing the query execution engine to make intelligent decisions. However, for specific scenarios where you observe performance bottlenecks or excessive memory consumption, experimenting with FullyBuffered or AutoBuffered might be beneficial.

Requirements

Assembly: System.Linq.Parallel.dll

Namespace: System.Linq

Platform: .NET Core 3.0, .NET 5+, .NET Standard 2.1+