Property MaxMemoryMB
MaxMemoryMB
Gets or sets the maximum amount of memory that may be used by the
driver executing this query, in MB.
Declaration
public Nullable<int> MaxMemoryMB { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> | The maximum amount of memory that may be used by the driver executing this query, in MB. If not set, defaults to MaxMemoryMB which itself has a default of 1GB. |
Remarks
This value indicates the amount of memory that may be consumed locally by the query execution of 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 the memory consumption exceeds this value, error will result.
If set, this limit is applied the query as a whole (including multiple calls to QueryAsync or full iteration over GetQueryAsyncEnumerable).