From 90a28b0dcce1dc15fb465f0f18287c9270ccc7cb Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Mon, 6 Jul 2020 19:33:19 +0300 Subject: [PATCH] DB query swapping to file system refs #572 Change-Id: I3609ab9207fd01710aeb7c00debae259d1dc08c3 --- bundles/org.simantics/src/org/simantics/SimanticsPlatform.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.simantics/src/org/simantics/SimanticsPlatform.java b/bundles/org.simantics/src/org/simantics/SimanticsPlatform.java index aa0b503da..373074a21 100644 --- a/bundles/org.simantics/src/org/simantics/SimanticsPlatform.java +++ b/bundles/org.simantics/src/org/simantics/SimanticsPlatform.java @@ -1009,6 +1009,8 @@ public class SimanticsPlatform implements LifecycleListener { progress.subTask("Flushing Index Caches"); try { Simantics.flushIndexCaches(progress.newChild(20), s); + if("true".equals(System.getProperty("org.simantics.db.persistQueries"))) + Simantics.saveQueries(s); } catch (Throwable t) { LOGGER.error("Failed to flush index caches.", t); } -- 2.47.1