i have created an index on an ID column, however i need to create some type of index or find a solution for when i am searching a TEXT column for a LIKE
its taking forever to execute the LIKE query on this text column because there are hundreds of thousands of rows.
i dont think i can just create an index on it, can i? what is the proper way to optimize this?
You might consider using a FULLTEXT index, if you’re using MyISAM engine for your table, and you’re willing to change the syntax a little bit. Check out this article for more info:
http://www.databasejournal.com/sqletc/article.php/1578331/Using-Fulltext-Indexes-in-MySQL—Part-1.htm