-->
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.  [ 4 posts ] 
Author Message
 Post subject: Is nonexistance cached?
PostPosted: Thu Jun 02, 2005 9:39 pm 
Beginner
Beginner

Joined: Mon Sep 15, 2003 6:28 pm
Posts: 26
Just a quick question about how smart the hibernate 2nd level cache is:

Is the nonexistance of an object cached?

That is, if I do two finds on the primary key of an object that doesn't exist, does the second call result in a DB query?

Thanks,
Jeff Schnitzer
Voodoodyne Inc


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 02, 2005 9:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Non-existence is not cached.

"Voodoodyne Inc"? You changed jobs?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 03, 2005 3:20 pm 
Beginner
Beginner

Joined: Mon Sep 15, 2003 6:28 pm
Posts: 26
gavin wrote:
Non-existence is not cached.


Oh well. I can work around that, but it would be useful for entities with natural keys. The query cache will cache the fact that the result set was empty, right?

gavin wrote:
"Voodoodyne Inc"? You changed jobs?


I created my own, taking Frank and a couple other friends with me. I can't publicly announce what we're doing, but it will be a very high-profile use of JBoss and Hibernate in the gaming space. I can tell you about it offline :-)

Thanks,
Jeff Schnitzer
Voodoodyne Inc


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 3:36 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Cool :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.