DBZ-7047 Don't use parallel streaming
Using parallel streams, this causes a severe loss of performance.
This commit is contained in:
parent
a3affaf6a8
commit
642b720982
@ -285,7 +285,7 @@ protected int getTransactionEventCount(InfinispanTransaction transaction) {
|
||||
// todo: implement indexed keys when ISPN supports them
|
||||
return (int) getEventCache()
|
||||
.keySet()
|
||||
.parallelStream()
|
||||
.stream()
|
||||
.filter(k -> k.startsWith(transaction.getTransactionId() + "-"))
|
||||
.count();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user