Ran across this article, which states that:
My question is, supposed one http request to our home page loads X java object instance. So, that means if there are Y visitors every second, then it will create X * Y java objects instance per second; which is not efficient and will have to be cleaned by GC eventually....first thing to realize about the second-level cache is that it doesn't cache instances of the object type being cached; instead it caches the individual values for the properties of that object
Is the above theory accurate? If so, is it possible to configure hibernate to store objects instead of values only? That way, GC won't have to work so hard?


Reply With Quote