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
5741
May 06, 2011 02:14PM
2476
May 08, 2011 01:28PM
1747
May 09, 2011 10:57AM
3630
May 10, 2011 04:40AM
1689
May 10, 2011 11:41AM
2593
May 10, 2011 12:54PM
Re: Stop using filesort
1789
May 12, 2011 08:04AM
1379
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.