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.  [ 3 posts ] 
Author Message
 Post subject: Caching and one-to-one relationships = Broken
PostPosted: Tue Oct 10, 2006 7:10 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
It seems that NH 1.2.0 beta does not function so well with caching one-to-one relationships using either the constrained=true semantics or the property-ref fk type.

In both cases I get lots of excess queries to read this data redundantly, even though the query cache and 2nd level cache is working fine for all other objects and relationships.

Any word on a fix for this?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 1:32 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
NHibernate does not (currently) cache property-ref-ed objects because the cache only supports storage and retrieval by id and NHibernate doesn't know the id.

Can't tell anything about constrained though, I believe it should work.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 6:37 am 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
OK thanks. I'll check into the constrained more and post a reproducible case if I still see a problem. Thanks!


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