Performance issue with PersistentBag.equalsSnapshot() during query flush when using FlushMode.AUTO in Hibernate
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7
- Hibernate 5
Issue
- Significant time is spent in
PersistentBag.equalsSnapshot()during query flush when usingFlushMode.AUTOif there large lists (e.g. for associations) referenced by entities touched during a transaction.
Resolution
This issue1 is resolved in This content is not included.EAP 7.2 cumulative patch (CP) 4 and later releases. Production systems should use the latest available cumulative patch.
Root Cause
This is a known issue (Content from hibernate.atlassian.net is not included.HHH-11032).
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.