MySQL Forums
Forum List  »  Optimizer & Parser

Re: How to optimize an ORDER BY query using a range to avoid any filesorts
Posted by: Faury Rodriguez
Date: October 15, 2007 03:44AM

Explain results:
id: 1
select_type: SIMPLE
table: series_main
type: index
possible_keys: NULL
key: weight_db
key_len: 4
ref: NULL
rows: 2874243
Extra: Using where

It just downgrades to an index scan of the entire table and disregards the db portion of the index.

Options: ReplyQuote




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.