[Plugin: SEO SearchTerms Tagging 2] SQL tweak
-
Table wp_stt2_meta needs an index by ‘last_modified’, without it SELECTs like this one
SELECT <code>meta_value</code> , <code>meta_count</code> , <code>post_id</code> FROM <code>wp_stt2_meta</code> ORDER BY <code>last_modified</code> DESC LIMIT 50
are going through all rows using expensive filesort.
Without index:
# Query_time: 0.007573 Lock_time: 0.000088 Rows_sent: 50 Rows_examined: 7882
with index:
# Query_time: 0.000334 Lock_time: 0.000076 Rows_sent: 50 Rows_examined: 50
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: SEO SearchTerms Tagging 2] SQL tweak’ is closed to new replies.