Re: How can I get the 'EXISTS' or 'IN' use an index?
Posted by:
Rick James
Date: August 08, 2009 04:44PM
To assist in analyzing slow SELECTs, please provide
* SHOW CREATE TABLE tbl\G
* SHOW TABLE STATUS LIKE 'tbl'\G
* EXPLAIN SELECT ...\G
and surround them with [ code ] and [ / code ]
Some ideas:
* Turn the IN EXISTS into a LEFT JOIN
* Create INDEX(who, created) and (created, who); then look at the EXPLAIN to see which one (if either) it uses.
I may have more clues when I see the SHOWs and EXPLAINs.
Subject
Views
Written By
Posted
3146
July 30, 2009 04:39AM
Re: How can I get the 'EXISTS' or 'IN' use an index?
1937
August 08, 2009 04:44PM
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.