Joined: Tue Nov 14, 2006 2:06 pm Posts: 1
|
Hi,
I have a requirement where i need to read records from a flat file and save each record in the database.
I am using a scheduler to read recods into a bean save it into database using hibernate/spring. i am using .save(bean) method.
this is working file however its very slow. Its taking .1 sec to insert one record. my requirment is to commit each record since if there is any error while insering a record that will be ignored and the next record will be inserted. due to this i am not using batch and do commit for every record
can anyone suggest be what is the best way to implement this
thanks
Darshan
|
|