MySQL Forums
Forum List  »  Optimizer & Parser

Re: Help with Explain Plan
Posted by: Corey Samuels
Date: April 22, 2010 09:53AM

Maybe I can whittle down what I believe is the issue:

A LEFT JOIN on a large (>15 million rows) table ON an indexed primary key column (profile_id) gives this in the EXPLAIN:

+----+-------------+------------+--------+---------------------------------+---------------------+---------+----------------------------+------+----------------------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+------------+--------+---------------------------------+---------------------+---------+----------------------------+------+----------------------------------------------+
| 1 | PRIMARY | tr | ref | profile_id,post_id | profile_id | 9 | ejmr.to_profile_id | 19 | |

This is taking a long, long time (~8 mins) even though the key is correct the rows column says "19". Is there anything you can see in the EXPLAIN that points to the cause?

Any help is appreciated.

Thanks,
Corey

Options: ReplyQuote


Subject
Views
Written By
Posted
2838
April 20, 2010 10:02AM
Re: Help with Explain Plan
1782
April 22, 2010 09:53AM
1642
April 24, 2010 02:36PM
1741
April 27, 2010 12:44PM
1390
April 29, 2010 09: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.