[hibernate-dev] HHH-10162 Inheritance and L2 cache

Christian Beikov christian.beikov at gmail.com
Thu Mar 2 13:06:49 EST 2017


Hey guys,

Steve said I should start a discussion about the possible solution for 
HHH-10162 <https://hibernate.atlassian.net/browse/HHH-10162> so here we go.

While debugging the issue, I found out that the proxy is created at 
DefaultLoadEventListener.createProxyIfNecessary() where it IMO should 
consult the 2L cache first by calling existing = 
loadFromSecondLevelCache( event, persister, keyToLoad );. The fix looks 
easy, but I am not sure of the implications. Obviously this will affect 
performance a little since it has to consult the L2 cache now.

I tried to start a discussion in the Dev room, but so far only Andrea, 
Vlad and Chris have commented this. Has anyone a different idea for 
implementing this?
-- 

Mit freundlichen Grüßen,
------------------------------------------------------------------------
*Christian Beikov*


More information about the hibernate-dev mailing list