-->
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: Hibernate + Mysql = Count(*) problem
PostPosted: Sat Feb 26, 2005 8:59 am 
Newbie

Joined: Sat Feb 26, 2005 8:57 am
Posts: 2
Hi,

we develop using Hibernate.

this is an example of a query that is launched :

select count(*) from tblPostReaction this inner join tblUser user on this.userId=user.id left outer join tblUserLevel userlevel2_ on user.userLevelId=userlevel2_.id inner join tblPost post on this.postId=post.id left outer join tblPostType posttype4_ on post.postTypeId=posttype4_.id where 1=1 order by this.id asc

tblPostReaction has 500.000 records
tblUser has 17.000 records
tblUserLevel has 20 records
tblPostType has 10 records
tblPost has 7000 records

the mysql doesn't seem to respond to this statement.......must I configure something special on the mysql server ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 26, 2005 9:15 am 
Newbie

Joined: Sat Feb 26, 2005 8:57 am
Posts: 2
we thought of using the SQL_CALC_FOUND_ROWS feature of mysql to overcome this problem, any help on this idea would be appreciated :)


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.