Hellow.
I did not use database, the engine works with RAM.
I created a workflow consisting of 3 steps:
The first 2 do nothing:
public class Step1Delegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
}
}
public class Step2Delegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
}
}
The third step is External Task.
Then i launched 100k Instances. After a while, at the third step in my workflow, 100k tasks were displayed awaiting external execution.
Then I registered a worker and tried to select 100 tasks. It took 34 seconds. This operation used about 30% of CPU (core-i5 6500).
I’m doing something wrong or it should be so?