These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Cache Providers will not behave the same
PostPosted: Thu Mar 01, 2007 11:21 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
I've been looking into the cache providers and it appears that different implementations will not behave the same for the query cache.

The sys cache provider Builds the named cache regions at session factory startup and stores the caches in a static hashtable. Then if a query is set as cacheable and a region is set, the StandardQueryCache will attempt to build the cache, but if a cache with the same name has already been built, it will use the existing one. This appears to be the desired behavior.

However, the mem cached provider does not store a static list of the already built cache regions. When the standard query cache attempts to build a named cache region, it will create a new cache. So you could potentially end up with caches with the same region name. Atleast thats how it looks from the code.

Any thoughts on this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.