-->
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: What if I cache EVERYTHING?
PostPosted: Fri Apr 16, 2004 5:44 pm 
Regular
Regular

Joined: Tue Dec 02, 2003 6:25 pm
Posts: 61
Location: Dallas, TX
Looking for some caching guidelines / advice / patterns / etc.

I'm using EHCache with Hibernate and it works very well. In fact, I haven't had a single problem with it. I am using read-only caching for all of my immutable classes, query caching for my lookup/dropdown boxes, and I have turned on read-write caching for a few central classes.

I'm gradually turning on read-write caching on more and more classes, and now I'm wondering - what if I turned on read-write caching for everything? Aside from the warnings in the doc about transactions, is there any reason to be conservative with read-write caches, assuming that I can appopriately configure each cache's size/lifetime?

What if, going forward, as I map new entities, I cache them all by default, and then tweak my caching strategy later on if I encounter performance issues?

Also, I was wondering if anyone knew what sort of benefits I would get from "nonstrict read / write" cache? Does that just mean that it does not synchronize?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 16, 2004 11:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
There is no particular reason to not use read-write strategy everywhere, except that some things simply don't benefit from being cached (and so you would just be wasting memory).


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.