MySQL Forums
Forum List  »  Performance

Re: slow queries and blob fields
Posted by: KimSeong Loh
Date: July 06, 2005 06:05PM

MySQL can only use 1 index in this scenario, it will have to choose 1 from active and news_date.

If you have a composite index on (active,news_date), then this is likely to remove the "using filesort"

As with Jay suggestion, if active has a low cardinality like 2, then you should not be indexing it, then it will be able to use the news_date index and this should be able remove the "using filesort" as well in this query.

Options: ReplyQuote


Subject
Views
Written By
Posted
2695
July 06, 2005 11:09AM
1741
July 06, 2005 11:59AM
Re: slow queries and blob fields
1656
July 06, 2005 06:05PM
1913
July 07, 2005 03:32PM
1657
July 07, 2005 05:58PM
1763
July 12, 2005 10:19AM


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.