I have the following queries:
SELECT id FROM gr_webimages; (~0.0040 sec, 500 records)
SELECT id, parents FROM gr_webimages; (~0.0450 sec, 500 records)
As you can see the only difference is the "parents" field which is a varchar(255) type. ("id" int(10) primary key) The second query is more than 10 times slower and the server not using any index. Could anyone explain why it takes so long and how can I speed up this query?