-->
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: How good hibernate is for large data-volume comparasion
PostPosted: Wed May 25, 2005 8:18 am 
Newbie

Joined: Wed May 25, 2005 7:51 am
Posts: 1
Hello,

I was wondering whether Hibernate can be used for a scenario that involves reading huge number of records from 2 tables, comparing 2 type of data (from each table) based on some business rules (like table1.column2 = table2.column5, table1.column3 between (table2.column6, table2.column10) and categorized (matched, unmatched) based on them and write result back to database. Just to give you an idea, the requirement is to process over 75 million records per day - there are some 30+ columns in each table and data type is mostly numeric (int).

Comparasion operation could be done much easily (compared to using JDBC) if we have data as objects (Hibernate), however, it doesnt involve updation of existing data - transaction might be an overhead. Which would be more efficient - reading 100k records in one shot (query.list()) or reading records in batches of 1k (the server is high-end machine, database on local lan, bandwidth not a problem). How efficiently hibernate could be used in this scenario along with J2SE5.0's java.util.concurrency, say, readying 2 types of data via 2 threads running in parallel and using Hashmap (concurrent) to keep read data as objects.

What do you think?

Thanks,

katyan.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2005 9:29 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
try it
hibernate will work almost like jdbc if you set mapping correct

regards


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.