From: Antti Villberg Date: Mon, 6 Jul 2020 16:33:19 +0000 (+0300) Subject: DB query swapping to file system X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=90a28b0dcce1dc15fb465f0f18287c9270ccc7cb;p=simantics%2Fplatform.git DB query swapping to file system refs #572 Change-Id: I3609ab9207fd01710aeb7c00debae259d1dc08c3 --- 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); }