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


Subject
Views
Written By
Posted
5736
May 06, 2011 02:14PM
2468
May 08, 2011 01:28PM
1745
May 09, 2011 10:57AM
3628
May 10, 2011 04:40AM
1688
May 10, 2011 11:41AM
2590
May 10, 2011 12:54PM
Re: Stop using filesort
1787
May 12, 2011 08:04AM
1376
May 12, 2011 08:52AM


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.