MySQL Forums
Forum List  »  Performance

Re: Count massively faster than select on same query, why?!?!
Posted by: Bob Field
Date: August 03, 2006 02:52PM

The use of SELECT * necessitates reading every column from the table. It is a generally accepted opinion that you should not use the SELECT * in general for a variety of reasons including performance, security, etc. You are better off listing explicitly exactly those columns you need to retrieve information from. MySQL will only do the work necessary to present the information requested, and will optimize this process to the extent possible. Therefore asking for less information is likely to be more efficient than asking for everything.

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.