Hi,
I'm trying to do some optimizing of the tables, and I found this query which is taking 0.15 seconds to run:
The table is reasonbly large (maybe 25k rows). The fields are set as:
I've tried moving the "Options" bit *AFTER* Type/isValidated, but it still seems too slow. Removing the "Options" part of the query drops it down to 0.0045 seconds.. which is more like what I would expect!
I've got an index setup for the query... but maybe there is more I can do?
TIA
Andy
I'm trying to do some optimizing of the tables, and I found this query which is taking 0.15 seconds to run:
Code:
SELECT *
FROM glinks_Links
WHERE (
Options LIKE '%30 minute meals%'
AND Type = 'Recipe'
AND isValidated = 'Yes'
)
ORDER BY Sponsored_c DESC
LIMIT 0 , 25
The table is reasonbly large (maybe 25k rows). The fields are set as:
Code:
isValidated = ENUM
Type = ENUM
Option = VARCHAR(100)
I've tried moving the "Options" bit *AFTER* Type/isValidated, but it still seems too slow. Removing the "Options" part of the query drops it down to 0.0045 seconds.. which is more like what I would expect!
I've got an index setup for the query... but maybe there is more I can do?
Code:
Options_2 BTREE No No Options 3066 A Yes
Type 3066 A No
isValidated 3066 A No
Sponsored_c 3066 A No
TIA
Andy