From 2cfce03f6e0ed2cc1facf42c871ef773de20a78f Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Mon, 7 Oct 2019 16:49:15 +0200 Subject: [PATCH] logic: improved performance of python post processing (by around factor 2) --- src/lib/data/indexer/TaskExecuteCustomCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/data/indexer/TaskExecuteCustomCommands.cpp b/src/lib/data/indexer/TaskExecuteCustomCommands.cpp index 5e120f98..4a89976b 100644 --- a/src/lib/data/indexer/TaskExecuteCustomCommands.cpp +++ b/src/lib/data/indexer/TaskExecuteCustomCommands.cpp @@ -363,7 +363,7 @@ void TaskExecuteCustomCommands::runPythonPostProcessing(PersistentStorage& stora storage.addElementComponent(StorageElementComponent(ambiguousEdgeIds[i], elementComponentKindToInt(ElementComponentKind::IS_AMBIGUOUS), L"")); storage.addOccurrence(StorageOccurrence(ambiguousEdgeIds[i], dataToInsert[i].sourceLocationId)); } - + storage.setMode(SqliteIndexStorage::STORAGE_MODE_CLEAR); storage.removeElements(utility::toVector(elementsToDelete)); storage.finishInjection(); LOG_INFO("Finished Python post processing.");