Skip to content

Commit c635794

Browse files
authored
Update memory-limit-exceeded-for-query.mdx
1 parent d5b6c18 commit c635794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

knowledgebase/memory-limit-exceeded-for-query.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Users, in this case, have a few options.
2828
### Aggregations {#aggregations}
2929

3030
For memory-intensive aggregations or sorting scenarios, users can use the settings
31-
[`max_bytes_before_external_group_by`](/operations/settings/query-complexity/#settings-max_bytes_before_external_group_by)
31+
[`max_bytes_before_external_group_by`](/operations/settings/settings#max_bytes_before_external_group_by)
3232
and [`max_bytes_before_external_sort`](/operations/settings/settings#max_bytes_ratio_before_external_sort) respectively.
3333
The former of which is discussed extensively [here](/sql-reference/statements/select/group-by/#group-by-in-external-memory).
3434

@@ -38,7 +38,7 @@ help ensure queries do not OOM. The latter sorting setting helps address similar
3838
issues with memory-intensive sorts. This can be particularly important in
3939
distributed environments where a coordinating node receives sorted responses
4040
from child shards. In this case, the coordinating server can be asked to sort a
41-
dataset larger than its available memory. With [`max_bytes_before_external_sort`](/operations/settings/settings#max_bytes_before_external_group_by),
41+
dataset larger than its available memory. With [`max_bytes_before_external_sort`](/operations/settings/settings#max_bytes_ratio_before_external_sort),
4242
sorting can be allowed to spill over to disk. This setting is also helpful for
4343
cases where the user has an `ORDER BY` after a `GROUP BY` with a `LIMIT`,
4444
especially in cases where the query is distributed.

0 commit comments

Comments
 (0)