-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Inserting large number of records
PostPosted: Tue Nov 14, 2006 2:11 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.