-->
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: Query Result is removed from the Cache on table update
PostPosted: Sun Aug 26, 2007 8:54 am 
Newbie

Joined: Sun Apr 22, 2007 5:49 pm
Posts: 5
The second level cache is enabled on the application.
The Query Cache is enabled on the application.

There is a table TABLE_ACCOUNTS and queries Q1 Q2 and Q3 on the same table.

The above queries will return a set of Data, these queries are frequently used in the application by many concurrent threaded. I was planning to use QueryCache to cache the result of the Query.

But the twist in the story is my TABLE_ACCOUNTS table is updated frequently also. The updates will NOT effect the result of Q1 and Q2. But I see in hibernate that, the moment table on which the query was applied is updated the result of Q1 and Q2 are removed from the cache.

I want to know a mechanism where in I still keep my Query Result in the cache even though the table got updated.

TIA,
Naseer


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.