ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <paul4chris...@yahoo.com>
Subject Re: Caching resultMap sub-selects
Date Sat, 05 Nov 2005 19:05:39 GMT
Michael,

Please submit that as a patch :-) It really bugs me
too. I consider this a must have feature of iBATIS.
Better developer tools encourages greater use of the
product.

Paul

--- Michael Campbell <michael.campbell@gmail.com>
wrote:

> On 11/5/05, Paul Benedict <paul4christ79@yahoo.com>
> wrote:
> 
> > While it is not clear, I think it is recommending
> to
> > add a cache to the getProductsByCatId method (not
> the
> > parent getCategoryResult). Is that correct? I have
> > many sub-selects and it makes sense to put the
> cache
> > there, the only problem being I can never tell
> when
> > the cache is actually hit - everything always
> seems to
> > go to the DB.
> 
> 
> I think if you see output in your logs that indicate
> the DB is being
> hit, it is.  IIRC, the LACK of logging indicates a
> cache-hit. THis was
> bugging me greatly, so I put in some logging code
> into the cache layer
> for this.
> 



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

Mime
View raw message