You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Hibernate ORM and Reactive, the stateless session ignore the batch size property.
The reason is that the stateless session execute queries
immediately and does not store the entities to execute a batch update
later.
To enable batching, we need to use the `updateMultiple` method
instead. It will use the size of the list as batch value.
Copy file name to clipboardExpand all lines: frameworks/Java/quarkus/resteasy-reactive-hibernate-reactive/src/main/java/io/quarkus/benchmark/repository/WorldRepository.java
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,18 +37,15 @@ public Uni<Void> createData() {
Copy file name to clipboardExpand all lines: frameworks/Java/quarkus/resteasy-reactive-hibernate-reactive/src/main/java/io/quarkus/benchmark/resource/DbResource.java
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -44,17 +44,14 @@ public Uni<Void> createData() {
Copy file name to clipboardExpand all lines: frameworks/Java/quarkus/resteasy-reactive-hibernate/src/main/java/io/quarkus/benchmark/repository/WorldRepository.java
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
packageio.quarkus.benchmark.repository;
2
2
3
+
importjava.util.ArrayList;
4
+
importjava.util.List;
5
+
3
6
importio.quarkus.benchmark.model.World;
4
7
importio.quarkus.benchmark.utils.LocalRandom;
5
8
importio.quarkus.benchmark.utils.Randomizer;
@@ -53,21 +56,22 @@ public World[] loadNWorlds(final int count) {
53
56
54
57
publicWorld[] updateNWorlds(finalintcount) {
55
58
//We're again forced to use the "individual load" pattern by the rules:
0 commit comments