MySQL Forums
Forum List  »  Optimizer & Parser

Re: mySQL performance problem on subqueries
Posted by: KimSeong Loh
Date: May 15, 2006 06:17PM

Do you aware that if the query returns 2377 rows, then the subselect is executed 2377 times, not 1 time.

Counting a lot of rows is very fast and constant time in MyISAM but only if there is no Where condition and no Group by, means all rows in the table, this is beacuse the number of rows is stored in the table, so no actual counting is required.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: mySQL performance problem on subqueries
1848
May 15, 2006 06:17PM


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.