-->
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.  [ 2 posts ] 
Author Message
 Post subject: How intelligent is the query Cache ?
PostPosted: Mon Aug 27, 2007 4:48 am 
Newbie

Joined: Mon Aug 27, 2007 4:36 am
Posts: 2
Hi,

I got some questions about the intelligence of the caching in Hibernate.

Scenario:
The following example is used as foundation to my questions:
a) Query A contains criteria on attribute A
b) Query B contains criteria on attribute A and B
c) Query C contains criteria on attributes A, B, and C.
Now imagine queries A, B and C are executed in this order (query- and 2nd-level cache are enabled)

Questions:
a) when executing query B, I would expect an intelligent query cache to do the following:
- recognize that the query can be subdivided into 2 subqueries, one with criteria on A, one with criteria on B.
- since query A is already in the cache, just apply criteria B on the cached query results.

b) when executing query C, I would expext an intelligent query cache to do the following:
- recognize that the query can be subdivided into 3 subqueries, one with criteria on A, one with criteria on B, and one with criteria on C.
- since query B already regroups A and B, just apply criteria on C to the cached query results from query B.

c) I think you get the idea. How intelligent is Hibernate's query cache in conjunction with the second level cache working ? I would really like to know more about that topic, but neither in the Hibernate book, neither in the documentation do I find much detail about this.

Kind regards,

Jay Zawar


Top
 Profile  
 
 Post subject: has nobody got an idea ?
PostPosted: Tue Aug 28, 2007 3:47 am 
Newbie

Joined: Mon Aug 27, 2007 4:36 am
Posts: 2
hm


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

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.