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
Improve batch inserts.
1) Instead of making dbrm calls to writeVBEntry() per block, we make these calls per batch. This can have non-trivial reductions in the overhead of these calls if the batch size is large. 2) In dmlproc, do not deserialize the whole insertpackage, which consists of the complete record set per column, which would be wasteful as we only need some metadata fields from insertpackage here. This is only done for batch inserts at the moment, this should also be applied to single inserts.
This commit is contained in:
@ -72,6 +72,28 @@ int DMLTable::read(messageqcpp::ByteStream& bytestream)
|
||||
return retval;
|
||||
}
|
||||
|
||||
void DMLTable::readMetaData(messageqcpp::ByteStream& bytestream)
|
||||
{
|
||||
// read the table name
|
||||
bytestream >> fName;
|
||||
|
||||
// read the schema name
|
||||
bytestream >> fSchema;
|
||||
}
|
||||
|
||||
void DMLTable::readRowData(messageqcpp::ByteStream& bytestream)
|
||||
{
|
||||
messageqcpp::ByteStream::quadbyte rowNum;
|
||||
bytestream >> rowNum;
|
||||
|
||||
for (unsigned int i = 0; i < rowNum; i++)
|
||||
{
|
||||
Row* aRow = new Row();
|
||||
aRow->read(bytestream);
|
||||
fRows.push_back(aRow);
|
||||
}
|
||||
}
|
||||
|
||||
int DMLTable::write(messageqcpp::ByteStream& bytestream)
|
||||
{
|
||||
int retval = 1;
|
||||
|
Reference in New Issue
Block a user