MySQL Forums
Forum List  »  Optimizer & Parser

Why is FULLTEXT index not used with a LEFT JOIN?
Posted by: Tad Woods
Date: June 11, 2006 10:29AM

Why does MySQL (v5.0.21) NOT use a FULLTEXT index when a LEFT JOIN is involved? I've tried to supply USE INDEX but that doesn't change it. The following displays TYPE="ALL" for my vendors table.

EXPLAIN SELECT item, description
FROM purchases as p
LEFT JOIN vendors as v ON p.vendor_id = v.id
WHERE MATCH (v.company_name,v.first_name,v.last_name) AGAINST('lowes')

However if I use a regular JOIN it does use the "FULLTEXT" index.

EXPLAIN SELECT item, description
FROM purchases as p
JOIN vendors as v ON p.vendor_id = v.id
WHERE MATCH (v.company_name,v.first_name,v.last_name) AGAINST('lowes')

Options: ReplyQuote


Subject
Views
Written By
Posted
Why is FULLTEXT index not used with a LEFT JOIN?
3965
June 11, 2006 10:29AM


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.