-->
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: Hibernate cache question?
PostPosted: Wed Aug 24, 2005 3:17 pm 
Beginner
Beginner

Joined: Tue Aug 23, 2005 3:52 pm
Posts: 26
Consider this situation. Server is being hit with identical requests for data. If I set up a cache on the class level, data will be cached on the first request. However following request will still hit the db to retrieve indexes and then based on the index it will retrieve data from the cache.

Alternatively I can set up a query cache and cache results, but if some of the data changes query cache will be dropped and next request will hit the db again.

This is unacceptable for me. On each request I want to access latest cached data and return copy of the data to the client without hitting the db. I

I can’t figure out if hibernate is capable of this, if someone can shed some light on this please help.


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.