imthebest
Well-known member
Code:
# Time: 140829 5:01:15
# User@Host: mydatabase[mydatabase] @ localhost []
# Query_time: 3.425906 Lock_time: 0.000029 Rows_sent: 192 Rows_examined: 192
SET timestamp=1409306475;
SELECT search_index.content_type, search_index.content_id
FROM xf_search_index AS search_index
WHERE search_index.user_id = '108973'
ORDER BY search_index.item_date DESC
LIMIT 200;
Code:
# Time: 140829 7:16:01
# User@Host: mydatabase[mydatabase] @ localhost []
# Query_time: 3.301239 Lock_time: 0.000033 Rows_sent: 73 Rows_examined: 146
SET timestamp=1409314561;
SELECT search_index.content_type, search_index.content_id
FROM xf_search_index AS search_index
WHERE MATCH(search_index.title, search_index.metadata) AGAINST ('+(_md_user_107117) +_md_content_post' IN BOOLEAN MODE)
ORDER BY search_index.item_date desc
LIMIT 200;
Will the Enhanced Search add-on prevent these two types of slow queries?