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
9261
December 23, 2004 11:37PM
3764
December 27, 2004 11:54PM
3414
December 28, 2004 12:38PM
Re: String match is too slow in huge table
3190
December 31, 2004 07:38PM
3385
January 03, 2005 02:54PM
2900
January 03, 2005 05:08PM
3141
January 04, 2005 06:57AM
2610
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.