-->
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.  [ 4 posts ] 
Author Message
 Post subject: Table statistics
PostPosted: Wed May 31, 2006 3:22 pm 
Newbie

Joined: Wed May 31, 2006 3:13 pm
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

3.1


Hello everyone,

I have the following to work with but I don't know the answer to this and if it should deal with Hibernate. I am a hibernate beginner.

Currently, I have objects that are pulled from the database with Hibernate.
However, I have a set of complex queries that will be run on different sets of records within a specific table. THese queries will pull statistics about sets of records in a table. How do I model this in Hibernate and what is the most efficient way of accessing these complex statistics in real-time? I have a critical web application that I am now working on that requires these statistics to be accurate.

Any help is very much appreciated,

Alex


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 3:26 pm 
Regular
Regular

Joined: Thu Sep 22, 2005 1:53 pm
Posts: 88
Location: Rio de Janeiro
I think you need to be a bit more specific....
In terms of queries HQL
can do a lot for you.... like work aggregate functions etc....

_________________
DonĀ“t forget to rate!


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 3:55 pm 
Newbie

Joined: Wed May 31, 2006 3:13 pm
Posts: 2
Hi everyone,

Basically I have a Java object where none of the object properties corresponds to a table field. Each object property is the result of a complex query. There are about 15 complex queries that need to be done to create the object and my concern is in efficiency. Will it take too long to create the object? Does my java Object needs a Hibernate object mapped? Is that possible and/or necessary? Or should I just use HQL to create the object? Or create a view in SQL Server? If anyone knows of an efficient way to set this up on SQL Server 2000, I would greatly appreciate advice.

Thanks! Obrigado!

Claudio


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 5:09 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Hi,

To go towards Complex queries and retrieve values its better to go for View.

you wrote
create a view in SQL Server



Views are faster.

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


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