# setMemLimitOfQueryResult {#setmemlimitofqueryresult}

## Syntax {#syntax}

`setMemLimitOfQueryResult(memLimit)`

## Arguments {#arguments}

**memLimit** is a numeric scalar, indicating the memory limit \(in GB\). It must be smaller than smaller than 80% \* *maxMemSize*.

## Details {#details}

Set the memory limit for the result of each query online. This command can only be executed by an administrator on a data node or compute node.

**Note:**

The modified configuration will expire after the cluster is rebooted. To make it permanent, please specify the configuration parameter *memLimitOfQueryResult*.

Related function: [getMemLimitOfQueryResult](../g/getMemLimitOfQueryResult.md)

