MySQL Forums
Forum List  »  Newbie

Re: left join optimization
Posted by: Nick Roper
Date: September 03, 2004 02:20AM

Hi,

One thing that would be useful is to use the 'EXPLAIN' statment to see how the optimiser is using indexes etc:

EXPLAIN SELECT etc....

Then post the output (you can use \G at the end ofthe statement to force the output into more readable layout)

Maybe you could also post the output of SHOW CREATE TABLE... for each of the three tables.

There is an article that discusses left join optimisation at:

http://dev.mysql.com/doc/mysql/en/LEFT_JOIN_optimization.html


--
Nick Roper

Options: ReplyQuote


Subject
Written By
Posted
September 02, 2004 02:54PM
Re: left join optimization
September 03, 2004 02:20AM
September 05, 2004 05:50PM
September 06, 2004 02:23AM


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.