[hibernate-issues] [JIRA] (HHH-13702) Hibernate tries to flush @Immutable entity

Jörg Liebig (JIRA) jira at hibernate.atlassian.net
Mon Jun 15 03:43:57 EDT 2020


Jörg Liebig ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5a71c92494e44a4aca60ed8f ) *commented* on HHH-13702 ( https://hibernate.atlassian.net/browse/HHH-13702?atlOrigin=eyJpIjoiMzQ2OTJiMjRhZDJhNGUzMjgzZTBhZmFjNGIzMTdjMGYiLCJwIjoiaiJ9 )

Re: Hibernate tries to flush @Immutable entity ( https://hibernate.atlassian.net/browse/HHH-13702?atlOrigin=eyJpIjoiMzQ2OTJiMjRhZDJhNGUzMjgzZTBhZmFjNGIzMTdjMGYiLCJwIjoiaiJ9 )

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=eyJpIjoiMzQ2OTJiMjRhZDJhNGUzMjgzZTBhZmFjNGIzMTdjMGYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13702#add-comment?atlOrigin=eyJpIjoiMzQ2OTJiMjRhZDJhNGUzMjgzZTBhZmFjNGIzMTdjMGYiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100128- sha1:94e14fb )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200615/e7997a7c/attachment.html 


More information about the hibernate-issues mailing list