MySql does not use index on LIKE if wildcards are on both start and end.
Is there a work around for this query so it will use index:
SELECT * FROM Company WHERE Name LIKE '%ad%'
MySql does not use index on LIKE if wildcards are on both start and end.
Is there a work around for this query so it will use index:
SELECT * FROM Company WHERE Name LIKE '%ad%'
Maybe use fulltext search for such things: http://dev.mysql.com/doc/refman/5.6/en/fulltext-search.html
Simple, don't use index at the start of the LIKE
expression.
Adjust your data accordingly - use extra columns if you have to.