MySQL Forums
Forum List  »  Optimizer & Parser

Re: B-Tree index ignored. Why?
Posted by: KimSeong Loh
Date: March 14, 2007 07:39PM

Change this
WHERE 153742088 BETWEEN tStart and tEnd
to
WHERE tStart>=153742088 and tEnd<=153742088

Anyway it cannot use the composite index (tStart,tEnd), a single index will do.
Maybe it can use merge index optimisation in MySQL 5.0, if you have separate index on tStart and tEnd

Options: ReplyQuote


Subject
Views
Written By
Posted
7065
March 14, 2007 12:46PM
Re: B-Tree index ignored. Why?
2689
March 14, 2007 07:39PM


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.