You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
add max row size as configuration
This commit is contained in:
@@ -678,10 +678,14 @@ AlterTableProcessor::DDLResult AlterTableProcessor::processPackageInternal(
|
|||||||
|
|
||||||
bool AlterTableProcessor::tableTooBig(ddlpackage::QualifiedName& fTableNam)
|
bool AlterTableProcessor::tableTooBig(ddlpackage::QualifiedName& fTableNam)
|
||||||
{
|
{
|
||||||
//check fi there are more thank 500 rows
|
//check fi there are more thank MAX BATCH SIZE rows
|
||||||
DMLTable tableProc;
|
DMLTable tableProc;
|
||||||
tableProc.set_TableName(fTableNam.fName);
|
tableProc.set_TableName(fTableNam.fName);
|
||||||
if(tableProc.get_RowList().size() > 500)
|
string maxRowSizeAlterString;
|
||||||
|
config::Config* config = config::Config::makeConfig();
|
||||||
|
maxRowSizeAlterString = config->getConfig("SystemConfig", "MaxRowSizeAlter");
|
||||||
|
uint64_t maxRowSizeAlter = config::Config::uFromText(maxRowSizeAlterString);
|
||||||
|
if(tableProc.get_RowList().size() > maxRowSizeAlter)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -70,6 +70,8 @@
|
|||||||
the entire subdirectories "joins" & "aggregates" and recreates it to make sure no
|
the entire subdirectories "joins" & "aggregates" and recreates it to make sure no
|
||||||
files are left behind. -->
|
files are left behind. -->
|
||||||
<SystemTempFileDir>/tmp/columnstore_tmp_files</SystemTempFileDir>
|
<SystemTempFileDir>/tmp/columnstore_tmp_files</SystemTempFileDir>
|
||||||
|
<!-- Maximum row size of a table for which ALTER TABLE statements are allowed-->
|
||||||
|
<MaxRowSizeAlter>500</MaxRowSizeAlter>
|
||||||
</SystemConfig>
|
</SystemConfig>
|
||||||
<SystemModuleConfig>
|
<SystemModuleConfig>
|
||||||
<ModuleType2>um</ModuleType2>
|
<ModuleType2>um</ModuleType2>
|
||||||
|
Reference in New Issue
Block a user