mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
dbms: slightly lowered memory usage of distributed aggregation [#METR-2944].
This commit is contained in:
parent
8a61f96d67
commit
91b10d0820
@ -1365,6 +1365,9 @@ void NO_INLINE Aggregator::mergeStreamsImpl(
|
||||
Method::getAggregateData(it->second) + offsets_of_aggregate_states[j],
|
||||
(*aggregate_columns[j])[i]);
|
||||
}
|
||||
|
||||
/// Пораньше освобождаем память.
|
||||
block.clear();
|
||||
}
|
||||
|
||||
void NO_INLINE Aggregator::mergeWithoutKeyStreamsImpl(
|
||||
@ -1387,6 +1390,9 @@ void NO_INLINE Aggregator::mergeWithoutKeyStreamsImpl(
|
||||
/// Добавляем значения
|
||||
for (size_t i = 0; i < aggregates_size; ++i)
|
||||
aggregate_functions[i]->merge(res + offsets_of_aggregate_states[i], (*aggregate_columns[i])[0]);
|
||||
|
||||
/// Пораньше освобождаем память.
|
||||
block.clear();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user