Re: Can anyone help speed up this query?
Hi,
Not sure if it is the major contributor to the execution time, but I think there is a significant overhead with each MATCH function and you should try to limit the number of times you call it. For example, instead of
MATCH(column1) AGAINST ('+term1' IN BOOLEAN MODE) OR
MATCH(column2) AGAINST ('+term2' IN BOOLEAN MODE)
I think you can write
MATCH(column1, column2) AGAINST ('term1 term2' IN BOOLEAN MODE)
It seems you are implementing your own ranking scheme. Have you considered whether the ranking scheme provided by NATURAL LANGUAGE MODE would be sufficient for your needs?
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
1052
June 21, 2017 11:07AM
681
June 21, 2017 02:53PM
674
June 22, 2017 09:15AM
622
June 22, 2017 12:54PM
674
June 23, 2017 07:50AM
563
June 23, 2017 11:14AM
Re: Can anyone help speed up this query?
613
June 22, 2017 01:18AM
679
June 22, 2017 09:56AM
652
June 23, 2017 12:53AM
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.