1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

chore(cpimport): MCOL-6033 Change batch max size (#3652)

This commit is contained in:
Kristina Pavlova
2025-07-27 22:10:27 +03:00
committed by GitHub
parent 3418e68b78
commit 72eb0bbaf9
2 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,8 @@ using DBRootVec = std::vector<DBRootT>;
// assumed column width when calculating dictionary store extent size // assumed column width when calculating dictionary store extent size
#define DICT_COL_WIDTH 8 #define DICT_COL_WIDTH 8
static const uint32_t MAX_EXTENT_SIZE = 8000000;
// valid values for EMEntry.status // valid values for EMEntry.status
const int16_t EXTENTSTATUSMIN(0); // equal to minimum valid status value const int16_t EXTENTSTATUSMIN(0); // equal to minimum valid status value
const int16_t EXTENTAVAILABLE(0); const int16_t EXTENTAVAILABLE(0);

View File

@ -733,7 +733,7 @@ void WECmdArgs::parseCmdLineArgs(int argc, char** argv)
} }
else if (fBatchQty > 100000) else if (fBatchQty > 100000)
{ {
fBatchQty = 10000; fBatchQty = min(static_cast<uint32_t>(fBatchQty), BRM::MAX_EXTENT_SIZE);
} }
} }
if (vm.count("max-errors")) if (vm.count("max-errors"))