dbms: removed random shuffling of data parts on SELECT [#METR-17757].

This commit is contained in:
Alexey Milovidov 2015-08-19 21:35:02 +03:00
parent b4b33364e9
commit 5374c2a927

View File

@ -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;