-->
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.  [ 5 posts ] 
Author Message
 Post subject: Should I use Hibernate to increase data analysis performance
PostPosted: Thu Jun 30, 2005 12:12 pm 
Newbie

Joined: Thu Jun 30, 2005 12:02 pm
Posts: 2
I am just investigating the choices to increase performance of my Data Minning and analisys tool.

I have MYSQL Data base with millions of records. I extarct these records in a Java Swing Graphic Application and store in a table.

Now, when I plot graphs over these records I go to data base again and fetch records set that match what I want to plot.

How can Hibernate fit into this? Can I map my data base tables to objects through Hibernate and run query to those Hibernate objects rather then going to data base again and again with my graph criteria? Will these Hibernate ORM allows data base tables to be in memory and allow SQL to be run on those objects?

Please provide your thoughts.

Thanks
Lucky



Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2005 12:18 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
Yours doesn't sound like a good application for ORM. You should probably use a cache of some sort, like ehcache, directly.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2005 4:43 pm 
Newbie

Joined: Thu Jun 30, 2005 12:02 pm
Posts: 2
[Lucky75] That is what I am trying to figure out if I should use Hibernate or not. In the presentation Hibernate states that it supports "high performance queires" as well as "Dual Layer Cacheing Architecture".

What I am thinking is map my tables to Hibernate objects and use HQL on those. But I am not sure if Hibernate is fast enough to execute my queries on millions of records OR NOT. It does have ehcache support built in though.

Any thoughts?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 30, 2005 6:17 pm 
Newbie

Joined: Tue Jan 20, 2004 7:12 pm
Posts: 2
Modern databases have their own caching schemes. Hibernate probably will not give you any magic speed improvements over correctly tuned raw database queries.

It's possible, though, that if you have a lot of RAM and set up a large cache, you may see some worthwhile improvements.

The only way to know for sure is to set up a test case for each approach and measure their speed.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 6:36 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
There are special kind of features in databases aka "OLAP" ( bitmap indexes an mviews, special kind of statistics functions/procedures ). I am afraid "Data Minning and analisys tool " with Swing stuff will fail to load analisys databe to memory.


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