From bfc44b60653a595bf71595979ef5f64b18fa93ed Mon Sep 17 00:00:00 2001 From: Leonid Ryzhyk Date: Fri, 29 Mar 2019 13:32:30 -0700 Subject: [PATCH] Change the Java example to use two worker threads This seems to be the performance/memory sweet spot for this example --- java/test1/RedistTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/test1/RedistTest.java b/java/test1/RedistTest.java index 8d619a6e8..340972171 100644 --- a/java/test1/RedistTest.java +++ b/java/test1/RedistTest.java @@ -232,11 +232,11 @@ public static class SpanParser { SpanParser() { if (localTables) { - this.api = new DDlogAPI(1, r -> this.onCommit(r)); + this.api = new DDlogAPI(2, r -> this.onCommit(r)); this.spanTableId = this.api.getTableId("Span"); System.err.println("Span table id " + this.spanTableId); } else { - this.api = new DDlogAPI(1, null); + this.api = new DDlogAPI(2, null); } this.command = null; this.exitCode = -1;