Some bidirectional associations do not use inverse="true"
---------------------------------------------------------
Key: JBPM-2031
URL:
https://jira.jboss.org/jira/browse/JBPM-2031
Project: JBoss jBPM
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Core Engine
Affects Versions: jBPM 3.3.1 GA
Environment: Tested with MySQL with query log enabled in JUnit.
Reporter: Tomasz Wysocki
Priority: Minor
Currently couple of bidirectional associations do not use inverse="true" on
one-to-many side (collection)
The examples are
- ProcessInstance.instances
- CompositeLog.children
I'm sure there are more of them.
Lack of inverse="true" results in additional "UPDATE" statement being
issued by hibernate to create a relationship from a one-to-many side.
This is not necessary when java code is updating both ends of an association.
Some use-cases where lots of new processes are being created would see a performance
improvement.
CompositeLog logging overhead will decrease (only INSERT will be issued - no UPDATE)
Please consider reviewing all of your bidirectional associations with respect to this
optimization.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira