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
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

Written By
March 14, 2007 12:46PM
Re: B-Tree index ignored. Why?
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.