MySQL Forums
Forum List  »  Performance

Re: Simple JOIN is extremely slow.
Posted by: Rick James
Date: June 15, 2011 07:38PM

> # Jorgen: Interesting - key_len is still 4
Yes, there are not enough columns in the EXPLAIN output to spell out everything. The "4" says that is all that can be done with an eq_ref; "Using index" says that more stuff is used, but without any details. (Note: leaving out, say, `b` from that example would still "Using index".)

> # Rick: These are frustrating
> # Jorgen: Handler_read session status indicates that only one record is read
> in both cases. Maybe a more advanced test case is needed.
I left out a key prerequisite: There are a million rows with a=2. I believe it starts at the beginning of a=2, scans to the end, then backs up to find the one row.

Options: ReplyQuote


Subject
Views
Written By
Posted
3053
June 10, 2011 10:34AM
1099
June 13, 2011 11:01AM
1002
June 14, 2011 08:04PM
Re: Simple JOIN is extremely slow.
1001
June 15, 2011 07:38PM


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.