MySQL Forums
Forum List  »  Performance

Re: Simple left join query with abysmal performance.
Posted by: KimSeong Loh
Date: June 15, 2005 07:22PM

Try change this primary key
PRIMARY KEY (ACT_ID,MOV_ID)
to
PRIMARY KEY (MOV_ID,ACT_ID)

Or, add an index
INDEX (MOV_ID)
to the table LNK_ACT_MOV

Reason is that, the whole 10,000 index entries need to be examined to find the match since the primary key index is not sorted on MOV_ID column.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Simple left join query with abysmal performance.
3055
June 15, 2005 07:22PM


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.