Jörg Liebig (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a71c92...
) *commented* on HHH-13702 (
https://hibernate.atlassian.net/browse/HHH-13702?atlOrigin=eyJpIjoiMzQ2OT...
)
Re: Hibernate tries to flush @Immutable entity (
https://hibernate.atlassian.net/browse/HHH-13702?atlOrigin=eyJpIjoiMzQ2OT...
)
Hi,
I’m experiencing the same problem in Hibernate 5.4.17.Final. I’m trying to write a new
entity that references via collection/relationship potentially thousands of immutable
entities. Due to the flush the operation is quite slow, e.g., > 1000 ms for writing
only 1 entity, that references in one scenario 6000 immutable entities. I tried to work
around this issue, by trying to update the collection/relationship via JPQL/HQL query,
which seems to be impossible according to
https://en.wikibooks.org/wiki/Java_Persistence/JPQL#Update_Queries.
Is there anything I can do?
Best regards
Jörg Liebig
(
https://hibernate.atlassian.net/browse/HHH-13702#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13702#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#100128- sha1:94e14fb )