MySQL Forums
Forum List  »  Optimizer & Parser

Re: Creating an index to include ORDER BY
Posted by: Yogesh Salvi
Date: December 13, 2006 05:02AM

Hello,

I would suggest you to create complosite index like this :-

index on (DateColumn,ThePrimaryKeyColumn,NumberColumn)

This index should be used my mysql even if your query is not having "NumberColumn" in it.

Regards,
Yogesh Salvi

Options: ReplyQuote


Subject
Views
Written By
Posted
3130
November 02, 2006 08:28AM
2051
November 03, 2006 09:24AM
Re: Creating an index to include ORDER BY
2013
December 13, 2006 05:02AM


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.