mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
dbms: removed random shuffling of data parts on SELECT [#METR-17757].
This commit is contained in:
parent
b4b33364e9
commit
5374c2a927
@ -351,9 +351,6 @@ BlockInputStreams MergeTreeDataSelectExecutor::spreadMarkRangesAmongThreads(
|
|||||||
const size_t max_marks_to_use_cache =
|
const size_t max_marks_to_use_cache =
|
||||||
(settings.merge_tree_max_rows_to_use_cache + data.index_granularity - 1) / data.index_granularity;
|
(settings.merge_tree_max_rows_to_use_cache + data.index_granularity - 1) / data.index_granularity;
|
||||||
|
|
||||||
/// На всякий случай перемешаем куски.
|
|
||||||
std::random_shuffle(parts.begin(), parts.end());
|
|
||||||
|
|
||||||
/// Посчитаем засечки для каждого куска.
|
/// Посчитаем засечки для каждого куска.
|
||||||
std::vector<size_t> sum_marks_in_parts(parts.size());
|
std::vector<size_t> sum_marks_in_parts(parts.size());
|
||||||
size_t sum_marks = 0;
|
size_t sum_marks = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user