Property MaxMemoryMB
MaxMemoryMB
Gets or sets the maximum amount of memory in megabytes that can be
used by the driver-side portion of a query.
Declaration
public int MaxMemoryMB { get; set; }
Property Value
Type | Description |
---|---|
Int32 | Maximum amount of memory in MB for the execution of the driver-side portion of a query. The default is 1024 (1 GB). |
Remarks
This property serves as a default for MaxMemoryMB.
The memory at the driver is needed for query operations such as duplicate elimination (which may be required if using an index on an array or a map) and sorting. Such operations may require significant amount of memory as they need to cache full result set or a large subset of it locally. If memory consumption exceeds this value, an exception will be thrown.