]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/org/simantics/db/procore/cluster/ClusterBig.java
Help investigation of query caching problems via query histogram data
[simantics/platform.git] / bundles / org.simantics.db.procore / src / org / simantics / db / procore / cluster / ClusterBig.java
index 2d5e462d6d7c692bf2b37cd313fd1d14bb41fd22..d3587f76e9a81d54aa515b31e525f824bbb83c69 100644 (file)
@@ -98,7 +98,7 @@ final public class ClusterBig extends ClusterImpl {
         this.clusterMap = new ClusterMap(foreignTable, flatTable);
         this.clusterSupport = support;
         this.clusterBits = ClusterTraitsBase.getClusterBits(clusterKey);
-        this.importance = clusterTable.timeCounter();
+        this.importance = -clusterTable.timeCounter();
         clusterTable.markImmutable(this, getImmutable());
     }
     void analyse() {
@@ -816,6 +816,11 @@ final public class ClusterBig extends ClusterImpl {
         throw new Error("Not supported.");
     }
 
+    @Override
+    public String toString() {
+        return "ClusterBig[" + getClusterId() + "]";
+    }
+
     public int makeResourceKey(int resourceIndex) throws DatabaseException {
         int key = 0;
 //        if (ClusterTraitsBase.isIllegalResourceIndex(resourceIndex))