Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiODZmZjIzZjA2...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-17077?atlOrigin=eyJpIjoiODZmZj...
) HHH-17077 (
https://hibernate.atlassian.net/browse/HHH-17077?atlOrigin=eyJpIjoiODZmZj...
) Improve batching and locking design (
https://hibernate.atlassian.net/browse/HHH-17077?atlOrigin=eyJpIjoiODZmZj...
)
Issue Type: Improvement Assignee: Unassigned Created: 14/Aug/2023 09:08 AM Fix Versions:
6.wishlist Priority: Major Reporter: Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Right now, we only support batching a single statement, but especially with locking which
should IMO also be batched, it is desirable to support multiple open batches.
Locking in general is a bit clumsy right now. We have post-load hooks and Callback for
upgrading lock modes, but these all feel a bit ad-hoc to me.
Since Callback is only used for locking anyway, I think we should re-model this into a
more general purpose solution that also allows batching.
The idea for this came from
https://github.com/hibernate/hibernate-orm/pull/7063
(
https://hibernate.atlassian.net/browse/HHH-17077#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17077#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100234- sha1:d099d86 )