DBZ-7047 Don't use parallel streaming

Using parallel streams, this causes a severe loss of performance.
This commit is contained in:
Chris Cranford 2023-10-17 08:08:50 -04:00 committed by Chris Cranford
parent a3affaf6a8
commit 642b720982

View File

@ -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();
}