[hibernate-dev] Bytecode enhancement

Emmanuel Bernard emmanuel at hibernate.org
Wed Oct 10 04:01:30 EDT 2012


On Wed 2012-10-10  9:26, Emmanuel Bernard wrote:
> Would using a service that store cache data structures by session work? I am thinking out loud here trying to push the cache idea before discarding it. That would require a weak-key concurrent map. The one I know is the one Jason wrote as a proposal for SE. I. Cannot remember where we use it but it must be in Search or in Validator. 

Actually that is simpler than that. Because the session cannot be used
in more than one thread, only one call stack is active per session. We
can keep the cache per session and lear it before every top level public method
of session (ie persist, flush, merge etc).


More information about the hibernate-dev mailing list