-->
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 of related objects
PostPosted: Fri Aug 29, 2003 8:43 am 
Newbie

Joined: Fri Aug 29, 2003 8:34 am
Posts: 7
Im using the process level JCS cache pretty heavily
against a very static database that mainly consists
of a single common table with a dozen "detail" tables.

My understanding is that Hibernate (2.0.2) will maintain
a cache for Main, each of the Detail classes and
one per collection relationship between Main and Detail.

Is there a way to make it dumber than this and just leave
the HashSet between sessions?

ie JCS region just for Main and cached instances of Main keep
a tree of objects (even those loaded by Hibernate)?

Seems to me like it would give small but significant performance
advantage. I could cache it outside HIbernate but then Id lose
the ability to mix and match what is cached and what isnt.

Anyway, to the developers: fantastic code, many thanks.

Cheers

Sam


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2003 3:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
There's a number of good reasons for the current design. Most importantly we can't just cache a set of objects; we have to disassemble the set and cache just the ids.

This will not be changed.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2003 3:14 pm 
Newbie

Joined: Fri Aug 29, 2003 8:34 am
Posts: 7
Thanks for reply.

Wasnt asking for change in the design (seems very
elegant and powerful).

Just wondering if any way to tell it to dumb down :)

Thanks

Sam


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.