-->
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: saving hibernate objects using stored procedure
PostPosted: Wed Dec 19, 2012 5:16 am 
Newbie

Joined: Sat Dec 15, 2012 3:24 am
Posts: 2
I have a scenario where-in i need to persist an entity and its dependent objects into database. I have run into a position where-in i have to insert about 50000 such objects one after the other from a web application. Now doing this in a loop would take about 3 hours to process.

I want to change the approach to pass the hibernate entities to a stored procedure and execute them on the database side since this would take considerably lesser time in execution.

I want to know if this can be done and if yes, how can this be accomplished. The following example can be taken as reference.

Parent A, Parent B - Both may or may not have dependency.
Parent C - Independent parent.
Parent B has 3 children - Child A, Child B, Child C.
Child B has also reference to parent C.


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.