Alex Roytman (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-13979 (
https://hibernate.atlassian.net/browse/HHH-13979?atlOrigin=eyJpIjoiYmM2YT...
)
Re: Performance with JCache/EhCache v3 is three times slower than with old ehcache (
https://hibernate.atlassian.net/browse/HHH-13979?atlOrigin=eyJpIjoiYmM2YT...
)
I have a feel it could be in serialization code. I wonder when you put entity into
secondary cache I assume you extract its state and thus it can be stored by reference not
by value. I wonder if going through JCache API to initialize caches it may by default
create by value cache causing unnecessary serialization/deserialization of keys and values
all the time. I could not find a declarative way for ehcache to force by-reference model
and their docs say that their heap default is by reference but when going through JCache
interfaces it defaults to by-value unless set to by-reference during cache initialization.
Maybe it is what's happening?
(
https://hibernate.atlassian.net/browse/HHH-13979#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13979#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:63ccdc5 )