MySQL Forums
Forum List  »  Performance

Re: Wrong estimation of Rows in explain
Posted by: Rathi Rao
Date: August 02, 2016 05:48AM

Hi Rick,

Apologies for the delayed response.

That many a data is needed and unfortunately I do not have any where conditions to filter the data

Would you please help me understand how is the row estimate correct? Should'nt it show the total number of rows in the table?

Also, with the join such as a.col1 = b.col1 and a.col2 = b.col2, which one would be better?

Separate indexes on each of the columns a.col1, a.col2 , b.col2 and b.col1

or

composite indexes on (a.col1,a.col2) and (b.col1,b.col2) ??

Thanks in advance
Rathi

Options: ReplyQuote


Subject
Views
Written By
Posted
2113
July 27, 2016 06:19AM
Re: Wrong estimation of Rows in explain
942
August 02, 2016 05:48AM


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.