|
From: Keith D. <kd...@cs...> - 2004-04-26 20:16:53
|
I think a SqlUpdate operation that can perform batch inserts would be a nice addition to the jdbc.object package. I'd like to be able to set the batch size, and then just call "batchInserter.insert(object)" and have the SqlUpdate.update(Object[] Parameters) method automatically queue up sql operations until the batch size is reached, and then commit 'em all, starting over for the next batch.... (likely requiring a flush() call once there is no more data.) I'm essentially doing large data loads. Is there something like this already? If not, I can write it. I could use it! Keith |