Re: String match is too slow in huge table
You've already got "use full text search" advice which might work well for your case, I would just ecplain what is happening in this case.
The problem is you're having like "const%" on both surname and name. In such case even though you have index on (name,surname) MySQL will only be able to use prefix of the first key, as second key part only can be used if
"=" is used for first key part at this point.
First idea would be to use have (surname) index instead which is normally more sellective.
Subject
Views
Written By
Posted
9132
December 23, 2004 11:37PM
3673
December 27, 2004 11:54PM
3333
December 28, 2004 12:38PM
Re: String match is too slow in huge table
3080
December 31, 2004 07:38PM
3305
January 03, 2005 02:54PM
2835
January 03, 2005 05:08PM
3071
January 04, 2005 06:57AM
2520
January 04, 2005 11:05AM
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.