MySQL Forums
Forum List  »  Optimizer & Parser

Re: Want ORDER BY to use indexed portion of long text field
Posted by: Bob Fitterman
Date: November 15, 2007 09:20AM

Chris, thanks for the suggestion, but it still uses filesort. I am stumped. If you want to play with it, here's some SQL to create a test table.

DROP TABLE IF EXISTS `foo`;
CREATE TABLE `foo` (
`id` int(10) unsigned NOT NULL auto_increment,
`var` varchar(10000) NOT NULL,
`txt` text NOT NULL,
PRIMARY KEY (`id`),
KEY `varindex` (`var`(40)),
KEY `txtindex` (`txt`(40))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Want ORDER BY to use indexed portion of long text field
3051
November 15, 2007 09:20AM


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.