That's a good observation. Can you throw a feature request in jira?
Cheers,
Clinton
On 2010-03-05, François Schiettecatte wrote:
> Hi
>
> Any reason why there are only two select() methods in
> org.apache.ibatis.session:
>
> void select(String statement, Object parameter, ResultHandler handle
Okay, even though you didn't have a Jira ticket open for this, as an added
bonus of rewriting the entire result handler, there's now an optimized
implementation that should be able to handle any number of rows, as long as
you're not using nested result mapping (which makes it impossible to
avoid).
Hmmm... I don't think so. I suppose it would make sense to add that ! :-)
Jira ticket!
On Tue, Sep 15, 2009 at 11:57 AM, K. Arnold wrote:
>
> Out of curiosity, is it possible to create my own DefaultSetResultHandler?
> I
> wrote an plugin that would intercept the call, and I was going to walk
Out of curiosity, is it possible to create my own DefaultSetResultHandler? I
wrote an plugin that would intercept the call, and I was going to walk
through the result set myself. Unfortunately I'm not sure how to get the
parameters that are used in the constructor. Looking at the code it seems
Ah, then yes, iBATIS 3 might be more aggressive about using the nested
objects cache...(even without join mapping), I can't remember if iBATIS 2
would behave the same way. Might be worth a try... if it works in 2, then
I'll revisit the design to see if I can get 3 to only cache if it detects a
nes
I have not used iBATIS 2 to do a comparison. It is very well that the
assumption given to me about how RowHandler works is false. I am in the
process of trying to figure out a good limit size to pick utilizing an AS400
jdbc driver working on a DB2 database.
We have decided that utilizing th
The difference between RowHandler and ResultHandler is only in name. They
did the same thing.
I'd be interested to know if iBATIS 2.x works for you in this regard. As far
as I can recall, 2.x had the same design if you invoked the join mapper...
See, as soon as you try to use a JOIN to load a com
Thank you for the reply. Is it possible to make the join mapping cache a
configurable attribute on the mapping file? This is my first time using
Ibatis and I was confidently informed that we could walk row by row over a
result set. I was told to look up the RowHandler interface. It is my
unde
The nestedResultObjects is necessary for join mapping. One way to deal with
this though, is to use batches of reads as well as writes. Use the
pagination facilities and possibly even the proprietary offset/limit
features of your database to grab subsets of the results.
Incidentally I'm rewriting