|
I am need of some MYSQL optimization advice. I have a table that contains 250,000+ plus rows and when I try to select one at random I get execution times of 60+ seconds.
Here is the SQL I am using:
SELECT DISTINCT * FROM table WHERE col_a = 0123456789 AND col_b = "TYPE"
Both col_a and col_b are indexes, neither are primary because there exists duplicate values for each column.
I need some help to get this number down to a more pratical number.
__________________
~Mark Romero
-Co Founder | Tech Guru, Please login or register to view this content. Registration is FREE
-FireFox Advocate, Please login or register to view this content. Registration is FREE
|