MySQL Forums
Forum List  »  Performance

Re: Puzzled: why does join run 27,252 x faster than left outer join?
Posted by: KimSeong Loh
Date: July 19, 2005 06:19PM

Looks like not the table order, the difference is the Range checked for each record (index map: 1)

I guess the LEFT join should be able to use the same optimisation as well, but why it doesn't.

Can you try using IN for both the inner and left join as well

mysql> explain select sum(b.amount)*-1
-> from lockbox a left outer join ledger b
-> on b.tranid in (a.payid, a.secid, a.petid)\G;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Puzzled: why does join run 27,252 x faster than left outer join?
1601
July 19, 2005 06:19PM


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.