-->
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.  [ 3 posts ] 
Author Message
 Post subject: Batch Processing in Hibernate 2.0
PostPosted: Tue Sep 13, 2005 2:45 am 
Newbie

Joined: Wed Apr 27, 2005 9:06 am
Posts: 5
Location: INDIA (NEW DELHI)
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
Hibernate 2.0

Problem Description :

I'm facing problems while batch processing using HIBERNATE 2.0 .
Actually i've an excel sheet to be uploaded in database, consists of 500 records, and after reading data and using "session.save(BeanObject)" , it's too slow.

Same Logic works well when there are 10 - 12 records in sheet.

Can somebody help me out of this.

thanks.

_________________
Prashant Kaushik.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 5:32 am 
Pro
Pro

Joined: Fri Sep 02, 2005 4:21 am
Posts: 206
Location: Vienna
Hi,

Have you tried to use hibernate.jdbc.batch_size (I hope it already exists in Hibernate 2.0)?

I assume that your problem is that each call to save results in a separate insert to the database.

Erik


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 22, 2005 9:06 am 
Newbie

Joined: Wed Apr 27, 2005 9:06 am
Posts: 5
Location: INDIA (NEW DELHI)
Hi Erik,
Thanks for suggestion, The problem which i've faced was coz of bad network connection. Your suggestion also provide a good deal of help .
thanks a lot :) .

Prashant


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

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.