ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Campbell <michael.campb...@gmail.com>
Subject Re: Caching resultMap sub-selects
Date Sat, 05 Nov 2005 18:33:07 GMT
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.

Mime
View raw message