-->
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: Second level cache and session.find(String hql)
PostPosted: Mon Dec 06, 2004 11:57 am 
Beginner
Beginner

Joined: Tue Oct 26, 2004 12:45 pm
Posts: 43
Location: Israel
Hi all.

My question is kind of disturbing:
I execute session.find() on a dinamic hql.
Is it using the second level cache before hitting the DB?

I am debugging my hibernate all day now, and maybe I missed it, but it doesn't seem like it is using the cache (not query cache).

Can someone help me on this matter?
[if you know, i would very much like a pointer to the exact code in Hibernate that access the cache]

Thanx very much,
Jus.


Top
 Profile  
 
 Post subject: Re: Second level cache and session.find(String hql)
PostPosted: Mon Dec 06, 2004 12:11 pm 
Beginner
Beginner

Joined: Tue Oct 26, 2004 12:45 pm
Posts: 43
Location: Israel
Issahar wrote:
My question is kind of disturbing:


In "disturbing" i meant that i am disturbed that i don't know such a thing, not that Hibernate does something wrong.

And indeed, i now figure out (after a little HIA reading), that queries are cached only in Query-Cache, so now i will go and read ch. 7, and see why they don't give you much performance gain.

stupid me.

Jus.


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.