MyBatis batch-insert example?

2012-04-05 Thread Aaron Daubman
Greetings, I've found some similar questions asked in the past but there never seem to be followups posted. I am looking for an example as how to perform batch insert operations using MyBatis with Camel. The desire is to be able to most efficiently insert 1000s of records at a time from a List. M

Re: MyBatis batch-insert example?

2012-04-05 Thread Aaron Daubman
Ugh - I think I found my problem. The camel-mybatis code will iterate over any list passed in and attempt to insert each item individually, bypassing foreach support =( ---from camel/trunk/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisProducer.java --- pri

Re: MyBatis batch-insert example?

2012-04-05 Thread Aaron Daubman
I just created an issue and submitted a patch for this: https://issues.apache.org/jira/browse/CAMEL-5143 On Thu, Apr 5, 2012 at 11:31 PM, Aaron Daubman wrote: > Ugh - I think I found my problem. > > The camel-mybatis code will iterate over any list passed in and attempt to > insert each item in

Re: MyBatis batch-insert example?

2012-04-06 Thread Claus Ibsen
On Fri, Apr 6, 2012 at 6:44 AM, Aaron Daubman wrote: > I just created an issue and submitted a patch for this: > https://issues.apache.org/jira/browse/CAMEL-5143 > Thanks for the contribution. Seems like a good improvement. Do you know if the old Apache iBatis project supports a similar function