Re: Simple left join query with abysmal performance.
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.
Subject
Views
Written By
Posted
6460
June 15, 2005 12:24PM
Re: Simple left join query with abysmal performance.
3055
June 15, 2005 07:22PM
2539
June 16, 2005 10:25AM
2385
July 10, 2005 08:59PM
2207
June 16, 2005 06:04AM
1916
June 16, 2005 10:28AM
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.