-->
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: table insert ordering
PostPosted: Fri May 17, 2013 12:46 pm 
Newbie

Joined: Fri May 17, 2013 12:42 pm
Posts: 2
I am writing an application to replicate data between two data sources. I have written an interceptor that works great and the code works fine if we don't engage batching. Unfortunately, this application needs to support batching because of the amount of data. My current attempt fails because of ordering issues.

Can anyone please point me in the right direction so I can learn how hibernate orders the table for batch writes?

Hibernate verion 3.6.10
Java: 1.6 (64 bit)

An additional note, we are doing the replication using JDBC so that we can transport the primary keys, etc. I do have access to the metadata within the SessionFactory, so I can retrieve the information from there if it's available.

Thank you in advance.


Top
 Profile  
 
 Post subject: Re: table insert ordering
PostPosted: Tue May 21, 2013 6:41 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
Why do you need ordering when you replicate primary keys?


Top
 Profile  
 
 Post subject: Re: table insert ordering
PostPosted: Tue May 21, 2013 8:20 am 
Newbie

Joined: Fri May 17, 2013 12:42 pm
Posts: 2
Good question. We do have the primary keys, however, it's the foreign keys that are the problem. I'm inserting a record into the database so any parent tables must be inserted first.


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.