Dave Myron (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5d8e891...
) *commented* on HHH-15500 (
https://hibernate.atlassian.net/browse/HHH-15500?atlOrigin=eyJpIjoiNTY3Nz...
)
Re: Cache key is huge since migration to 6 (
https://hibernate.atlassian.net/browse/HHH-15500?atlOrigin=eyJpIjoiNTY3Nz...
)
When we were on 4.3 we were using FstCodec with Redisson so the mechanism for the
generation of keys was slightly different (though I think both FstCodec and SnappyCodecV2
produce a binary key so should be roughly comparable for our purposes here).
A sample key for the same Entity from 4.3:
\x00\x01
org.hibernate.cache.spi.CacheKey\x81M\xbb\x04\x00\xf7\x80\x13'\xfcFcom.truenorthservice.nydus.hibernate.entities.SubscriberAttributeScope\xff\x00\x01\x1eorg.hibernate.type.IntegerType\x00\x018org.hibernate.type.descriptor.java.IntegerTypeDescriptor\xfd\x00\x11java.lang.Integer\x00\x018org.hibernate.internal.util.compare.ComparableComparator\x00\x00\x01:org.hibernate.type.descriptor.java.ImmutableMutabilityPlan\x00\x00\xfd\x13\x02\x80\xff\x00\xfa\x015org.hibernate.metamodel.relational.Size$LobMultiplier\x00\x00\x00\x017org.hibernate.type.descriptor.sql.IntegerTypeDescriptor\x00\xfb*\x01\x04\x00\x00\x00\x00\x00
That’s 625 characters instead of 2,023 as in the example.
(
https://hibernate.atlassian.net/browse/HHH-15500#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15500#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#100207- sha1:c85b1ee )