diff --git a/src/index/CompressedRelation.cpp b/src/index/CompressedRelation.cpp index f4e7e4b9b6..859b4f84c3 100644 --- a/src/index/CompressedRelation.cpp +++ b/src/index/CompressedRelation.cpp @@ -642,12 +642,7 @@ DecompressedBlock CompressedRelationReader::addUpdateTriples( if (numInserts == 0 && numDeletes == 0) { return block; } - DecompressedBlock blockWithUpdate{block.numColumns(), allocator_}; - blockWithUpdate.resize(block.numRows() + numInserts); - auto rowsWritten = locatedTriples.mergeTriples( - blockIndex, std::move(block), blockWithUpdate, 0, numIndexColumns); - blockWithUpdate.resize(rowsWritten); - return blockWithUpdate; + return locatedTriples.mergeTriples(blockIndex, block, numIndexColumns); } // ____________________________________________________________________________