You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-901 Significanlty reduced memory consumption for group_concat().
RowGroup default constructor allocates memory too generously. Removed commented code from groupconcat.cpp.
This commit is contained in:
@ -1211,12 +1211,13 @@ int64_t Row::getSignedNullValue(uint32_t colIndex) const
|
||||
RowGroup::RowGroup() : columnCount(0), data(NULL), rgData(NULL), strings(NULL),
|
||||
useStringTable(true), hasLongStringField(false), sTableThreshold(20)
|
||||
{
|
||||
oldOffsets.reserve(1024);
|
||||
oids.reserve(1024);
|
||||
keys.reserve(1024);
|
||||
types.reserve(1024);
|
||||
scale.reserve(1024);
|
||||
precision.reserve(1024);
|
||||
// 1024 is too generous to waste.
|
||||
oldOffsets.reserve(10);
|
||||
oids.reserve(10);
|
||||
keys.reserve(10);
|
||||
types.reserve(10);
|
||||
scale.reserve(10);
|
||||
precision.reserve(10);
|
||||
}
|
||||
|
||||
RowGroup::RowGroup(uint32_t colCount,
|
||||
|
Reference in New Issue
Block a user