MySQL Forums
Forum List  »  Performance

Re: Left join vs Inner join
Posted by: Øystein Grøvlen
Date: May 10, 2016 08:04AM

Hi,

LEFT JOIN requires that left table is processed before right table. Hence, the optimizer has less freedom in which orders tables may be processed.

The major problem with the LEFT JOIN plan is the table scan of the <derived2> table. (Derived tables are subqueries in FROM clause). This is a problem in MySQL 5.5 and earlier because indexed access is not possible for derived tables.

Your best bet is to upgrade to MySQL 5.6.

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
1912
May 09, 2016 06:10PM
Re: Left join vs Inner join
1042
May 10, 2016 08:04AM
936
May 10, 2016 10:40AM
906
May 10, 2016 07:23PM


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.