ClickHouse/docs/en/sql-reference/statements/select
Azat Khuzhin bdb39a6fef Change logic of automatic ORDER/GROUP BY to be based on available memory
- remove max_bytes_ratio_before_external_{order,group_by}_for_server
- change the way max_bytes_ratio_before_external_{order,group_by} works

Note, that it is not enough to transform ratio to bytes in
executeQuery(), since in this case it will not work for merges and
internal queries, plus, you have to reset them for Distributed engine
and update it for Merge/View/...

This patch also introduce some helpers (see MemoryTrackerUtils) and
adjust Aggregator::Params constructor to accept Settings object instead
of tons of arguments.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-11-28 16:01:53 +01:00
..
all.md Remove leftover empty lines at the end of markdown files 2023-01-09 15:15:18 +01:00
array-join.md Adds arrayJoin exception. Prettifies file. Fixes spelling. 2024-01-10 20:43:19 -04:00
distinct.md [Docs] fix some typos and missing commas 2024-02-13 02:10:41 +01:00
except.md fix style 2024-11-14 23:14:41 +01:00
format.md add slugs 2022-08-28 10:53:34 -04:00
from.md Docs: Mention FROM-before-SELECT 2024-09-09 08:05:18 +00:00
group-by.md Automatic GROUP BY to disk (max_bytes_ratio_before_external_group_by) 2024-11-28 16:01:53 +01:00
having.md add slugs 2022-08-28 10:53:34 -04:00
index.md Change logic of automatic ORDER/GROUP BY to be based on available memory 2024-11-28 16:01:53 +01:00
intersect.md Fix typo in intersect.md 2024-11-25 12:40:34 +01:00
into-outfile.md Update into-outfile.md 2023-12-13 09:04:07 -04:00
join.md update doc 2024-08-07 15:15:32 +08:00
limit-by.md Docs: Replace annoying three spaces in enumerations by a single space 2023-04-19 15:56:55 +00:00
limit.md Review changes and replace … with ... 2024-05-23 13:54:45 +02:00
offset.md replace symlinks 2022-08-29 12:19:50 -04:00
order-by.md update docs 2024-11-05 18:04:59 +00:00
prewhere.md Update prewhere.md 2023-02-14 13:07:01 -04:00
qualify.md Fixed code review issues 2024-04-22 14:37:04 +03:00
sample.md Fix broken links in docs 2024-06-12 14:09:37 +02:00
union.md Remove original article because it's redundant 2024-03-03 22:49:11 +08:00
where.md add slugs 2022-08-28 10:53:34 -04:00
with.md Recursive CTE documentation fix 2024-05-08 17:20:38 +03:00