You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-05 16:15:50 +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)
|
||||
{
|
||||
//check fi there are more thank 500 rows
|
||||
//check fi there are more thank MAX BATCH SIZE rows
|
||||
DMLTable tableProc;
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user