You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Collin Peters <ca...@gmail.com> on 2007/07/23 23:55:42 UTC

Caching clarification

Just a clarification on caching needed.  As stated the iBatis caching
model is different than a traditional ORM caching model in that it
doesn't cache on any OID.  I am wondering exactly how it does do the
lookup then?  I am assuming it stores them uniquely based on iBatis
ID, and then the unique params in the query?

So if I pass in a VO object to a loadWidget query, and the SQL uses
two params out of the VO, does it make the cache unique on the
loadWidget ID and the entire VO?  Or the loadWidget ID and the two
params sent?

Regards,
Collin

Re: Caching clarification

Posted by Larry Meadors <lm...@apache.org>.
The loadWidget ID and the two params sent.

Larry


On 7/23/07, Collin Peters <ca...@gmail.com> wrote:
> Just a clarification on caching needed.  As stated the iBatis caching
> model is different than a traditional ORM caching model in that it
> doesn't cache on any OID.  I am wondering exactly how it does do the
> lookup then?  I am assuming it stores them uniquely based on iBatis
> ID, and then the unique params in the query?
>
> So if I pass in a VO object to a loadWidget query, and the SQL uses
> two params out of the VO, does it make the cache unique on the
> loadWidget ID and the entire VO?  Or the loadWidget ID and the two
> params sent?
>
> Regards,
> Collin
>