I have a customer table having column, Name which is varchar(255). In the app we have a search functionality by name. We have about 8 million records in this table. The query is very obvious.
SELECT customer_table_columns FROM customer_table WHERE customer_name
LIKE '%user input customer name%';
Now this query runs considerably slow (takes upto minute) and it annoys the users. I was wondering if there is a way to improve the performance of this query.
There is an index on this column but index type is not defined. Options for index type are FULLTEXT, PRIMARY and UNIQUE.