From 077f9e6e99acae1d53fa9ab134610dd484cda6b8 Mon Sep 17 00:00:00 2001 From: DavIvek Date: Fri, 8 Mar 2024 17:00:28 +0100 Subject: [PATCH] don't create new delta when merging caches --- src/storage/v2/disk/storage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/storage/v2/disk/storage.cpp b/src/storage/v2/disk/storage.cpp index f9cd2ac13..b0511dc9f 100644 --- a/src/storage/v2/disk/storage.cpp +++ b/src/storage/v2/disk/storage.cpp @@ -629,8 +629,7 @@ std::unordered_set DiskStorage::MergeVerticesFromMainCacheWithLabelIndexCac /// TODO: here are doing serialization and then later deserialization again -> expensive LoadVertexToLabelIndexCache(transaction, utils::SerializeVertexAsKeyForLabelIndex(label, vertex.gid), utils::SerializeVertexAsValueForLabelIndex(label, vertex.labels, vertex.properties), - CreateDeleteDeserializedIndexObjectDelta(index_deltas, std::nullopt, ts), - indexed_vertices->access()); + vertex.delta, indexed_vertices->access()); } } return gids;