|
From: David D. <fbs...@ya...> - 2006-03-03 00:07:16
|
Hi, I have been using Spring for 8 months now, and it is fantastic. Thank you to everyone who conceived, designed and built this very cool software. I would like to take advantage of the Hibernate 3 batch insert/update/delete support. I would like to do it using the HibernateTemplate. The bulkUpdate and saveOrUpdateAll methods appear to have the semantic that implies support for Hibernate 3 batching. The javadoc didn't explicitly say they do, so I read through the source and it doesn't appear to implement any variant of the 'session flush when iteration count % hibernate.jdbc.batch_size == 0' algorithm outlined in Hibernate's documentation. (See http://www.hibernate.org/hib_docs/v3/reference/en/html/batch.html#batch-inserts) Has this been implemented using an aspect that manages the flushing or in some other place that I am not aware of? I couldn't find any discussion of this on the dev mail archive. If there is no solution that has already been provided, then I am happy to submit the batchUpdate; batchSaveOrUpdate ... implementations. I should mention that I am using Spring 1.2.6 and read through the 2.0-M2 source and javadoc to see if it was addressed in that release. Thanks for your consideration. - David |