I have an object that I would like to cache in the second level cache, but it is often updated (using hibernate), and this makes it a weak candidate for the second level cache.
However, only 2 fields change frequently, while other columns are read frequently and are fairly static.
Is it possible to transfer these frequently changing fields to another table and create a one-to-one relationship with this new object? That way I could cache the original object, now that the columns are removed, and there is no need to cache a new object. Or could any benefit be lost due to frequent calls?
I know that I have to do my own analysis to make sure, but I wanted to check if I'm really in the right / normal way.
source
share