-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StatelessSession insertAll in batch does not do batching #2136
Conversation
...rnate-reactive-core/src/test/java/org/hibernate/PersistAllWithNoBatchSizeConfiguredTest.java
Fixed
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Unfortunately, there a a couple of changes needed.
...ive-core/src/main/java/org/hibernate/reactive/session/impl/ReactiveStatelessSessionImpl.java
Outdated
Show resolved
Hide resolved
...rnate-reactive-core/src/test/java/org/hibernate/PersistAllWithNoBatchSizeConfiguredTest.java
Fixed
Show resolved
Hide resolved
...rnate-reactive-core/src/test/java/org/hibernate/PersistAllWithNoBatchSizeConfiguredTest.java
Outdated
Show resolved
Hide resolved
...ive-core/src/main/java/org/hibernate/reactive/session/impl/ReactiveStatelessSessionImpl.java
Outdated
Show resolved
Hide resolved
...rnate-reactive-core/src/test/java/org/hibernate/PersistAllWithNoBatchSizeConfiguredTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
I left a few notes, but fixing the comments is really the only thing that's missing.
I forgot we also have insertMultiple
, deleteMultiple
, and updateMultiple
.
Do you have time to add tests for these too? Otherwise, we can do it another time.
hibernate-reactive-core/src/test/java/org/hibernate/ReactiveStatelessBatchSizeTest.java
Outdated
Show resolved
Hide resolved
hibernate-reactive-core/src/test/java/org/hibernate/ReactiveStatelessBatchSizeTest.java
Outdated
Show resolved
Hide resolved
hibernate-reactive-core/src/test/java/org/hibernate/ReactiveStatelessBatchSizeTest.java
Outdated
Show resolved
Hide resolved
hibernate-reactive-core/src/test/java/org/hibernate/ReactiveStatelessBatchSizeTest.java
Outdated
Show resolved
Hide resolved
hibernate-reactive-core/src/test/java/org/hibernate/ReactiveStatelessDefaultBatchSizeTest.java
Outdated
Show resolved
Hide resolved
...ive-core/src/main/java/org/hibernate/reactive/session/impl/ReactiveStatelessSessionImpl.java
Outdated
Show resolved
Hide resolved
...ive-core/src/main/java/org/hibernate/reactive/session/impl/ReactiveStatelessSessionImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@gavinking @DavideD thanks a lot for the review |
...active-core/src/main/java/org/hibernate/reactive/mutiny/impl/MutinyStatelessSessionImpl.java
Show resolved
Hide resolved
Are we missing a |
I feel like this issue is never going to end :D |
Merged, thanks |
Actually, what's the plan for all the |
Good question, I'm not sure. But I guess I'm not keen on deprecating things unless there's a good reason to do so. |
Fix #2108