I have an InnoDB database with about 200K rows in the main table. I am experiencing EXTREMELY slow queries when trying to SELECT rows in this table based on VARCHAR (50) fields.
My queries take the form of:
SELECT * FROM table1 WHERE column1 = 'ABC3849DKJFL233489JKJFFK' and column2 = 'UIOJ3833838JJKFDL948DJ';
These queries are slowing my script down by many orders of magnitude and it is just not possible to continue my work until I fix this problem.
I have no other way to select the rows except these VARCHAR strings. Any thoughts on how to speed up these queries? Is there anything I can do here?