-->
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: How does query cache work?
PostPosted: Tue Nov 09, 2004 6:32 pm 
Newbie

Joined: Mon Oct 13, 2003 7:50 am
Posts: 7
Lets consider the following scenario. we have a query like this and we are using the query cache for this.

"* from com.xxx.PO where PO.value=10 and PO.xyz=20"

For the first time the query returns 10 rows and hibernate caches the IDs of these 10 rows.

Lets assume that in some other session, the values of some of the rows are changed. So, if the query is run against the DB, the result will be less than 10 rows. But, since hibernate has cached the IDs, for the criteria, it will return all the 10 rows if queried again.

Please clarify.

Regards,
Younus


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.