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

MCOL-3460. Found that indeed this is a worthwhile optimization.

Write and appendtask were breaking the incoming data into 1MB chunks
to call IOC::write/append() with.  Keeping the limit for safety,
but bumping it to 100MB.
This commit is contained in:
Patrick LeBlanc
2019-08-27 14:40:40 -05:00
parent 281443cb0a
commit e5a6e8401e
3 changed files with 6 additions and 4 deletions

View File

@ -68,7 +68,8 @@ bool WriteTask::run()
ssize_t readCount = 0, writeCount = 0;
vector<uint8_t> databuf;
uint bufsize = min(1 << 20, cmd->count); // 1 MB
uint bufsize = min(100 << 20, cmd->count); // 100 MB
//uint bufsize = cmd->count;
databuf.resize(bufsize);
while (readCount < cmd->count)