-->
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: caching by alternate unique keys
PostPosted: Wed Jun 22, 2005 9:55 am 
Beginner
Beginner

Joined: Tue Aug 17, 2004 11:27 pm
Posts: 24
Our database object has an autogenerated primary key along with other alternate unique keys. We use the hibernate second-level cache for these objects, but most often we are looking up by the alternate unique keys and the second level cache does not help for these situations. We would enable the query cache, but our queries use an in clause and take an array of alternate unique keys. This array of keys will almost never be the same and hence we will never get a query cache hit. Is it possible to tell the hibernate second level cache to cache by alternate unique keys in addition to the primary key?

Thanks.

-karl


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.