MySQL Forums
Forum List  »  Optimizer & Parser

Re: Stop using filesort
Posted by: Mark Duffy
Date: May 12, 2011 08:04AM

> SELECT title, content, MATCH(title,content) AGAINST ('searchterm' IN BOOLEAN MODE) AS bool_score, MATCH(title,content) AGAINST ('searchterm') AS nonbool_score FROM search;

excellent this was a good help.

What I did in the end up to speed things up was de-normalize the posts and topics table. It still uses filesort, but I was swayed when you said that "filesort doesn't necessarily mean it wont be used in memory." We will add triggers for the topics and posts tables. Do you know of anything I should look out for with triggers regarding data integrity.

Edited 2 time(s). Last edit at 05/12/2011 08:33AM by Mark Duffy.

Options: ReplyQuote

Written By
May 06, 2011 02:14PM
May 08, 2011 01:28PM
May 09, 2011 10:57AM
May 10, 2011 04:40AM
May 10, 2011 11:41AM
May 10, 2011 12:54PM
Re: Stop using filesort
May 12, 2011 08:04AM
May 12, 2011 08:52AM

Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.