I second this. Something like the Java version's startBatch() would be a great feature.
-----Original Message----- From: Clough, Samuel (USPC.PRG.Atlanta) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 7:06 AM To: [email protected] Subject: RE: Batched Statements That's helpful, but I was looking to see if there was going to be a way to do it in iBatis. IIRC, NHIbernate has a way to do it, but them Nhibernate so abstracts the sql I may be thinking of something else. It would be nice to just call something like BeginBatch on the datamapper and then FlushBatch to execute the statements. Since I'm using iBatis, I'd rather keep all the sql in iBatis so that everything's clean. If I have to batch up raw sql statements myself then I'm losing the benefits of iBatis. Just thinking out loud, it would also be a nice trick if when you had an update, insert, delete, etc statement where the parameter class was a domain object if you could pass an array of domain objects and iBatis would automatically loop over each object and execute the statement for each object in the array, again preferably in a batch if possible. I know that would not be obvious, but it might be a nice trick if you need to so several inserts of the same type like I do on a current project. -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 4:53 PM To: [email protected] Subject: Re: Batched Statements Batching is a new feature of ADO.Net's 2.0 DataAdapter class: http://davidhayden.com/blog/dave/archive/2006/01/05/2665.aspx I believe JDBC natively supports batching. When it makes sense to batch things I usually use a StringBuilder and build the raw sql statements myself. ----- Original Message ---- From: "Clough, Samuel (USPC.PRG.Atlanta)" <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, January 3, 2007 3:45:00 PM Subject: Batched Statements I noticed that there is an ability in the Java version to batch statements. So far I have been unable to find that ability in iBatis by looking around or by searching google, the mailing list archives, etc. Is there some way to batch statements that I have missed? If not is it planned for a future release?

