MySQL Forums
Forum List  »  Performance

Re: Optimize LIKE '%abc%' queries
Posted by: Apachez
Date: August 10, 2006 04:12PM

One problem with permuted table is when there is a word such as "1abc1abc123" which will be permuted.

A search for %abc% which against the permuted table is a abc% search will bring us two hits.

Bot abc1abc123 aswell as abc123, but I want each wordid only one time and once I apply something like GROUP BY the performance decreases and a plain LIKE '%abc%' will actually be faster specially for larger hits (a search which internally matches many wordid's).

Options: ReplyQuote


Subject
Views
Written By
Posted
15705
August 04, 2006 02:12PM
6906
August 04, 2006 02:30PM
6302
August 04, 2006 02:36PM
5883
August 04, 2006 02:56PM
6905
August 04, 2006 03:35PM
5428
August 10, 2006 12:41PM
4758
August 10, 2006 01:54PM
Re: Optimize LIKE '%abc%' queries
5589
August 10, 2006 04:12PM
4096
August 10, 2006 04:27PM


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.