Re: Slow result when hibernate sends count(*) statements
I imagine that query needs to read a lot of rows in order to resolve it as you don't have any sort of restriction in the WHERE clause.
Here are some questions which might help figure out the problem.
What does count(*) return?
What does EXPLAIN say on this statement?
Is the query using indexes properly?
Why is Hibernate doing this query?
Is there anyway to influence how Hibernate does this?
Let me know some of the answers and I can give you more information.
Harrison Fisk, Trainer and Consultant
MySQL AB, www.mysql.com
Subject
Views
Written By
Posted
4158
February 26, 2005 05:08AM
Re: Slow result when hibernate sends count(*) statements
2700
March 03, 2005 07:45PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.