Hi, there is a problem confusing me, I used saga to deal with some events, but I found that the velocity of saga is low, about 6 events be dealt with in one minute. So, what can I do to improve the speed of saga?
My code like this:
@Saga(sagaStore="")
public class someGaga{
@StartSaga
@SagaEventHandler
public void handle(AEvent event){
ACmd cmd = contert2Cmd(event);
commandGateway.sendAndWait(cmd);
}
@EndSaga
@SagaEventHandler
public void handle(BEvent event){
BCmd cmd = contert2Cmd(event);
commandGateway.sendAndWait(cmd);
}
}
The records in the table named saga_entry be removed slowly, how to make it faster?
Have you tried adding some indexes on the table AssociationValueEntry ?