geira
Mar 8th, 2008, 07:14 AM
We have a task where we need to iterate over a resultset on apx. 250000 and perform apx 2 db inserts for every record read.
Which approach should we take. We have tried using a RestartableItemProviderTasklet with an inputsource providing a record on each iteration, calling a method performing 2 db inserts.
Are there any more effective way to do this. How could we make use of Spring jdbc and batchUpdate?
Should we use another batch implementations which would be more effective?
Rgds.
Geir A.
Which approach should we take. We have tried using a RestartableItemProviderTasklet with an inputsource providing a record on each iteration, calling a method performing 2 db inserts.
Are there any more effective way to do this. How could we make use of Spring jdbc and batchUpdate?
Should we use another batch implementations which would be more effective?
Rgds.
Geir A.