From: Antti Villberg Date: Sun, 22 Jul 2018 22:51:17 +0000 (+0300) Subject: Thread count was wrong X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fprivate%2Fthreads-testing-fixes;p=simantics%2Fplatform.git Thread count was wrong Change-Id: If1b97dda9811140a4aa0c5faf5b2f5514141cfc0 --- diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java index 4e37d7fc7..a85078a41 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java @@ -3526,7 +3526,7 @@ public abstract class SessionImplSocket implements Session, WriteRequestSchedule public int getAmountOfQueryThreads() { // This must be a power of two - return 1; + return 16; // return Integer.highestOneBit(Runtime.getRuntime().availableProcessors()); }