We just recently started using Hibernate and are still getting used to how it works.
Of all that we saw, even after all sessions were closed, and the links went out of scope, hibernate still stores the previously used database values ββin the cache.
We have code that is read from a set of tables in several passes. Since all memory is freed very sparingly, later transfers slow down until bypassed.
Is there a way to get Hibernate to clear the cache?
An explicit call to System.gc () does not help. (Yes, I know this offer)
Additional Information: We have explicitly disabled the second level cache.
source
share