diff --git a/clickhouse/columns/string.cpp b/clickhouse/columns/string.cpp index 8ea362c4..ead1d9a6 100644 --- a/clickhouse/columns/string.cpp +++ b/clickhouse/columns/string.cpp @@ -247,8 +247,8 @@ void ColumnString::Append(ColumnRef column) { // TODO: fill up existing block with some items and then add a new one for the rest of items if (blocks_.size() == 0 || blocks_.back().GetAvailable() < total_size) blocks_.emplace_back(std::max(DEFAULT_BLOCK_SIZE, total_size)); - items_.reserve(items_.size() + col->Size()); + // Intentionally not doing items_.reserve() since that cripples performance. for (size_t i = 0; i < column->Size(); ++i) { this->AppendUnsafe((*col)[i]); }