MySQL Forums
Forum List  »  Performance

Re: select value between (start , end) optimisation
Posted by: James Day
Date: December 22, 2004 08:01AM

If alpha software is acceptable you might test to see if MySQL 5.0 helps. Not recommended for production use.

For earlier versions you need either one index which contains both fields or perhaps could try a self join. So, make an index with both start_field and end_field in it. In general, try to have a single index containing all major where clause parts in the same order as your intended order by.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: select value between (start , end) optimisation
2698
December 22, 2004 08:01AM


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.