[Optimize](point query) clear names to reduce mem consumption and cpu cost related to block column name (#26931)
This commit is contained in:
@ -178,6 +178,9 @@ void Block::insert(size_t position, ColumnWithTypeAndName&& elem) {
|
||||
|
||||
void Block::clear_names() {
|
||||
index_by_name.clear();
|
||||
for (auto& entry : data) {
|
||||
entry.name.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void Block::insert(const ColumnWithTypeAndName& elem) {
|
||||
|
||||
Reference in New Issue
Block a user