-->
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.  [ 2 posts ] 
Author Message
 Post subject: What is the best way to dump full database ?
PostPosted: Tue Feb 19, 2013 1:24 pm 
Newbie

Joined: Sat May 19, 2012 7:42 am
Posts: 4
Hello,

I have simple model like :
Code:
Employee (1) ------ (0..n) Tasks (not shared with other employee)
   (1)
    |
    |
    |
  (0..n)
Addresses (which can be email, phones, ...)


I have a lot of Employees (> 5 000 000), who have some tasks (100+) and some addresses (10+).


I already read and try fetching strategies exposed here : http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/performance.html
But I'm not convinced by any (too many sql requests).

Is there a way to have SUBSELECT fetching with query.scrool(ScrollMode.FORWARD_ONLY) ?

How do you do this kind of work ?

Thanks


Top
 Profile  
 
 Post subject: Re: What is the best way to dump full database ?
PostPosted: Thu Feb 21, 2013 3:59 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
Can't you use the dump mechanism of your database? Like EXP in Oracle?

Or you could dump just a single table in one step. What format do you need in the output? If you do a "plain" dump of each table you have IDs and foreign keys to import data again if needed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.