| 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 |