Re: Left join vs Inner join
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
Subject
Views
Written By
Posted
2069
May 09, 2016 06:10PM
Re: Left join vs Inner join
1101
May 10, 2016 08:04AM
1002
May 10, 2016 10:40AM
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.