-->
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: Hibernate good choice to manipulate large number of objects?
PostPosted: Sun May 23, 2004 8:52 am 
Newbie

Joined: Sun May 23, 2004 8:35 am
Posts: 1
Location: Germany
Dear team,

i would like to know if Hibernate is a good vehicle to do the following. If not, does someone know a better tool for achieving this goal ?

1. Read in XML/flat file and create java objects out of it
- files are usually larger than 500 MB.

2. Use Hibernate to keep these objects in memory and on disk. Persistence is used because we cannot hold such a large amount of data in memory, not because we want to keep the data for a long time

3. Hibernate is supposed to keep necessary objects both in memory and on disk and load needed data from disk into memory. I assume that Hibernate offers intelligent prefetching and caching algorithms.

4. I would like to iterate through the large set of data - using multiple threads - and read the data.

5. Is Hiberate able to use a flat file as a database instead of a relational database ?

If anybody could shed some light on this questions,
i would highly appreciate it.

Best regards
Frank

privat@frank-langel.de


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 9:20 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Hibernate = Object Relationnal Mapping, if you don't use a relationnal database, don't use an ORM....

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 10:32 am 
Beginner
Beginner

Joined: Tue Feb 10, 2004 2:30 pm
Posts: 25
Using a SAX content handler is the best way to process large XML sets, any other method I've found blows memory out regularly. Tie in a persister type method to the content handler if you need it saved to the DB. There is no nice XML to DB mapping tool really, it's best hand-rolled.


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.