Skip to content

Commit

Permalink
Change the Java example to use two worker threads
Browse files Browse the repository at this point in the history
This seems to be the performance/memory sweet spot for this example
  • Loading branch information
ryzhyk committed Mar 29, 2019
1 parent 498650c commit bfc44b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/test1/RedistTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bfc44b6

Please sign in to comment.