-
Notifications
You must be signed in to change notification settings - Fork 92
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
Why ProxyConnection can not use batch? #1256
Comments
This was referenced Mar 30, 2022
I think it's a mistake and we should pass allowBatching instead |
Please, feel free to send a PR |
DavideD
pushed a commit
that referenced
this issue
Mar 31, 2022
Rebased and merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use
quarkus-hibernate-reactive
to insert some rows to table, but it seems like that quarkus does not support reactive batch mode at present. I have written some comments in quarkus issue quarkusio/quarkus#16640So I start to try to start batch session manually.
I tried many ways, and finally succeeded in this way:
Fruit is a PanacheEntityBase:
But, if I use Panache Session, session can not use batch. So I check hibernate-reactive codes and I found that Panache use
ProxyConnection
. inProxyConnection
allowBatching can not used and set to false. I try to changefalse
toallowbatching
and rebuild jar, I find that hibernate-reactive can perform batch insert correctly.hibernate-reactive/hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/ProxyConnection.java
Lines 98 to 105 in dede54b
So I want to know why
ProxyConnection
can not use batch?The text was updated successfully, but these errors were encountered: