ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: cache behaviour
Date Wed, 29 Jun 2005 01:33:38 GMT
Might be worthwhile to start a wiki whiteboard page to discuss how this 
could be done.

Without object identity, it would be quite hard. We could perhaps base it on 
.equals()/.hashCode() (hashcode not for uniqueness, but for performance). 

Other thoughts?

Cheers,
Clinton

On 6/28/05, Paul Barry <pauljbarry3@gmail.com> wrote:
> 
> No, it doesn't, as far as I know, but if you find out that it does,
> let me know, because fine-grain cache invalidation is a feature that I
> have been wanting ibatis to have for a long time.
> 
> On 6/28/05, Ed Griebel <edgriebel@gmail.com> wrote:
> > I've just started looking at it, but doesn't using the OSCache model
> > (plugin?) provide finer-grained flushing, based on the key for the
> > dependant query?
> >
> > Thanks,
> > -ed
> >
> > On 6/28/05, Larry Meadors <larry.meadors@gmail.com> wrote:
> > > It will cache several objects returned, depending upon the cache
> > > controller specified. One thing to be aware of is that the cache is
> > > not aware of object identity - which means that if you update
> > > *anything* in that cache, all of the objects in the cache are flushed,
> > > not just the one that was updated.
> > >
> > > Larry
> > >
> > > On 6/28/05, dragos moraru <dmoraru@qcns.co.ro> wrote:
> > > >
> > > > HI!
> > > > I have a SQL select to return only one resutl each time, something 
> like:
> > > > Select * from product where id=#value#
> > > >
> > > > and i want to cache the results. I don't know if the cache-model
> > > > configuration form ibatis will store every object the query returns 
> or it
> > > > will replace each time the last object with the new one returned by 
> the
> > > > select.
> > > >
> > > > Thanks
> > >
> >
>

Mime
View raw message