]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
DB query swapping to file system
authorAntti Villberg <antti.villberg@semantum.fi>
Mon, 6 Jul 2020 16:33:19 +0000 (19:33 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Wed, 29 Jul 2020 15:22:05 +0000 (18:22 +0300)
refs #572

Change-Id: I3609ab9207fd01710aeb7c00debae259d1dc08c3

bundles/org.simantics/src/org/simantics/SimanticsPlatform.java

index aa0b503dace880ca7c18d86dd1584f944a18260e..373074a21baf0a33ef46ffb9f5dd6f7c30b1e2f8 100644 (file)
@@ -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);
                     }