MySQL Forums
Forum List  »  Performance

Re: Count massively faster than select on same query, why?!?!
Posted by: John
Date: August 03, 2006 03:04PM

ok, but surely both the count(*) and the select * first have to find the rows that match the where clause? if this is the same then I still don't understand the difference of 57 seconds, when with , in this example only 18k data per row (only 3 rows), the select then has to select the rows. Why the massive difference when surely the biggest expense is executing the where clause, which is the same for both?

Options: ReplyQuote




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.