MySQL Forums
Forum List  »  Performance

Re: Simple JOIN is extremely slow.
Posted by: Jørgen Løland
Date: June 15, 2011 11:42PM

Hi Rick,

>> # 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.

In our case we have 8 rows with a=2 and only the one with greatest b value is read so at least in our simple example it works fine. I'll just take your word for the millions-of-rows case :-)

Hope this helps,
Jørgen Løland
Software Engineer, MySQL, Oracle
jorgenloland.blogspot.com

Options: ReplyQuote


Subject
Views
Written By
Posted
3064
June 10, 2011 10:34AM
1100
June 13, 2011 11:01AM
1005
June 14, 2011 08:04PM
1004
June 15, 2011 07:38PM
Re: Simple JOIN is extremely slow.
936
June 15, 2011 11:42PM


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.