[jboss-user] [JBoss Cache: Core Edition] - Re: on child insert parent, child collection updated in DB b
dukehoops
do-not-reply at jboss.com
Wed Mar 18 15:09:36 EDT 2009
It seems like the problem is broader than that. It occurs whenever hibernate wishes to alter cache in Synchronization.afterCompletion() - i.e. whenever Hibernate chooses to execute org.hibernate.action.BulkOperationCleanupAction.evictEntityRegions(). In our specific case this happened against *ENTITY* region because we used hql Query.executeUpdate method. In that case, it seems, Hibernate chooses not to be granular (ie alter/remove only entities affected by the HQL update), but rather to simply evict the entire ENTITY region. Perhaps this will supplement your thinking on http://opensource.atlassian.com/projects/hibernate/browse/HHH-3818
I worked around our specific problem, by ensuring Hibernate does not execute the evict - i.e. by replacing Query.executeUpdate with domain model methods.
I am trying to follow your discussion on lock striping but - thus far - have fairly little understanding of what's going on ;-
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219212#4219212
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219212
More information about the jboss-user
mailing list