Commit c247d46
committed
Use loop for creating data with Hibernate Reactive
Currently, is not safe to use the Hibernate Reactive session with
`Uni.combine().all()`. Even if it still work for a simple scenario
like the one in the benchmark.
This commit change it to for loop so that the uni are executed
sequentially. Using `.usingConcurrencyOf(1)` would have also worked.1 parent dca68eb commit c247d46
1 file changed
Lines changed: 3 additions & 5 deletions
File tree
- frameworks/Java/quarkus/resteasy-reactive-hibernate-reactive/src/main/java/io/quarkus/benchmark/repository
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments