You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4685: Eliminate some irrelevant settings (uncompressed data and extents per file).
This patch: 1. Removes the option to declare uncompressed columns (set columnstore_compression_type = 0). 2. Ignores [COMMENT '[compression=0] option at table or column level (no error messages, just disregard). 3. Removes the option to set more than 2 extents per file (ExtentsPreSegmentFile). 4. Updates rebuildEM tool to support up to 10 dictionary extent per dictionary segment file. 5. Adds check for `DBRootStorageType` for rebuildEM tool. 6. Renamed rebuildEM to mcsRebuildEM.
This commit is contained in:
@ -59,10 +59,8 @@ WE_DDLCommandProc::WE_DDLCommandProc()
|
||||
if (fpc.length() != 0)
|
||||
filesPerColumnPartition = cf->uFromText(fpc);
|
||||
|
||||
string epsf = cf->getConfig("ExtentMap", "ExtentsPerSegmentFile");
|
||||
|
||||
if (epsf.length() != 0)
|
||||
extentsPerSegmentFile = cf->uFromText(epsf);
|
||||
// MCOL-4685: remove the option to set more than 2 extents per file (ExtentsPreSegmentFile).
|
||||
extentsPerSegmentFile = DEFAULT_EXTENTS_PER_SEGMENT_FILE;
|
||||
|
||||
string dbct = cf->getConfig("SystemConfig", "DBRootCount");
|
||||
|
||||
|
@ -112,7 +112,7 @@ private:
|
||||
WriteEngineWrapper fWEWrapper;
|
||||
BRM::DBRM fDbrm;
|
||||
unsigned extentsPerSegmentFile, extentRows, filesPerColumnPartition, dbrootCnt;
|
||||
|
||||
static const uint32_t DEFAULT_EXTENTS_PER_SEGMENT_FILE = 2;
|
||||
};
|
||||
}
|
||||
#undef EXPORT
|
||||
|
@ -70,10 +70,8 @@ WE_DMLCommandProc::WE_DMLCommandProc()
|
||||
if (fpc.length() != 0)
|
||||
filesPerColumnPartition = cf->uFromText(fpc);
|
||||
|
||||
string epsf = cf->getConfig("ExtentMap", "ExtentsPerSegmentFile");
|
||||
|
||||
if (epsf.length() != 0)
|
||||
extentsPerSegmentFile = cf->uFromText(epsf);
|
||||
// MCOL-4685: remove the option to set more than 2 extents per file (ExtentsPreSegmentFile).
|
||||
extentsPerSegmentFile = DEFAULT_EXTENTS_PER_SEGMENT_FILE;
|
||||
|
||||
string dbct = cf->getConfig("SystemConfig", "DBRootCount");
|
||||
|
||||
|
@ -132,6 +132,7 @@ private:
|
||||
BRM::DBRM fDbrm;
|
||||
unsigned extentsPerSegmentFile, extentRows, filesPerColumnPartition, dbrootCnt;
|
||||
Log fLog;
|
||||
static const uint32_t DEFAULT_EXTENTS_PER_SEGMENT_FILE = 2;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user