-
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
Value of hibernate.jdbc.batch_size
is ignored
#877
Comments
What I don't understand about this is that I thought we had tests that test statement batching. |
Well... those tests check that if you set the property everything works fine, they don't really test that it is actually using batching (as far as I remember). |
Well, you're right, But what is weird is that I certainly did test that |
Yes, right, that's what I just realized. |
Will this be solved by this other issue? |
Rrrrm, not automatically, but in principle perhaps that's one option for where we could hook in. I'm not sure. |
@DavideD isn't there a simpler temporary solution we could use? Like, do it in |
Co-authored-by: Gavin King <[email protected]>
We shouldn't ignore the return value of closeSession
It doesn't matter what we set it to, it's always 0.
The reason is that in
SessionFactoryOptionsBuilder
, there's a check to see if the database supports batching and it always return false. It happens because we don't extract the info from the databaseThe text was updated successfully, but these errors were encountered: