@@ -38,7 +38,7 @@ help ensure queries do not OOM. The latter sorting setting helps address similar
38
38
issues with memory-intensive sorts. This can be particularly important in
39
39
distributed environments where a coordinating node receives sorted responses
40
40
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 ) ,
42
42
sorting can be allowed to spill over to disk. This setting is also helpful for
43
43
cases where the user has an ` ORDER BY ` after a ` GROUP BY ` with a ` LIMIT ` ,
44
44
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
52
52
table, against which the left-hand table is then evaluated. To minimize memory,
53
53
users should thus place the smaller table on the right side. This approach still
54
54
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 )
56
56
setting. This derivative of the [ sort-merge algorithm] ( https://en.wikipedia.org/wiki/Sort-merge_join ) ,
57
57
first sorts the right table into blocks and creates a min-max index for them.
58
58
It then sorts parts of the left table by the join key and joins them over the
0 commit comments