Skip to content

Commit

Permalink
Stream query workflows results out of rest api. (#382)
Browse files Browse the repository at this point in the history
* Stream results out of rest api, lowering latency to first item. The main table query is still done synchronously, but additional queries are done on the stream lowering latency
* Performance is only lightly improved due to lower memory usage
  • Loading branch information
gmokki committed Mar 5, 2020
1 parent b9a4506 commit 109d1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ public ListWorkflowDefinitionResponse convert(AbstractWorkflowDefinition<? exten
}
for (Entry<String, List<String>> entry : definition.getAllowedTransitions().entrySet()) {
State state = states.get(entry.getKey());
for(String targetState : entry.getValue()) {
state.transitions.add(targetState);
}
state.transitions.addAll(entry.getValue());
}
for (Entry<String, WorkflowState> entry : definition.getFailureTransitions().entrySet()) {
State state = states.get(entry.getKey());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static class TransitionDelays extends ModelObject {

}

public static class Signal {
public static class Signal extends ModelObject {

@ApiModelProperty(value = "Signal value", required = true)
public int value;
Expand Down

0 comments on commit 109d1bc

Please sign in to comment.