Skip to content

Commit d5b6c18

Browse files
authored
update links
1 parent ad53f69 commit d5b6c18

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
@@ -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`](/sql-reference/statements/select/order-by/#implementation-details),
41+
dataset larger than its available memory. With [`max_bytes_before_external_sort`](/operations/settings/settings#max_bytes_before_external_group_by),
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.
@@ -52,7 +52,7 @@ This algorithm loads the right-hand table of the `JOIN` into an in-memory hash
5252
table, against which the left-hand table is then evaluated. To minimize memory,
5353
users should thus place the smaller table on the right side. This approach still
5454
has limitations in memory-bound cases, however. In these cases, `partial_merge`
55-
join can be enabled via the [`join_algorithm`](/operations/settings/settings#settings-join_algorithm)
55+
join can be enabled via the [`join_algorithm`](/operations/settings/settings#join_algorithm)
5656
setting. This derivative of the [sort-merge algorithm](https://en.wikipedia.org/wiki/Sort-merge_join),
5757
first sorts the right table into blocks and creates a min-max index for them.
5858
It then sorts parts of the left table by the join key and joins them over the

0 commit comments

Comments
 (0)