Code:
EXPLAIN SELECT *
FROM sbs_keywordindex
ORDER BY keywordid DESC , score DESC
LIMIT 100
Generates this
Code:
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE sbs_keywordindex index NULL keywordid 8 NULL 81448071
key_len = 8
Anyway I found a solution to the second one of my slow queries
Quote:
The update means reading sitedata which is a 2KB text string, parsing it, updating it and writing the 2KB string back to the database. If ther's 400 keywords in a webpage it means read/write of 400 2KB records.
The speed to execute that increased by a factor of 3 by changing the table structure from
[keywordid INT PRIMARY] [sitelist TEXT]
to this
[keywordid INT PRIMARY] [sitelist VARCHAR(2800)]
That's nice