MySQL Forums
Forum List  »  Performance

Re: Slow result when hibernate sends count(*) statements
Posted by: Harrison Fisk
Date: March 03, 2005 07:45PM

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

Options: ReplyQuote

Written By
Re: Slow result when hibernate sends count(*) statements
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.