MySQL Slow Queries
-
Although search results come back very quickly for me, I am getting frequent slow queries logged for MySQL.
They are of the forms:
# Query_time: 36.919798 Lock_time: 0.000053 Rows_sent: 1 Rows_examined: 7586413
# Rows_affected: 0 Bytes_sent: 90
SET timestamp=1669144788;
SELECT COUNT(DISTINCT(relevanssi.doc)) FROM wp_relevanssi AS relevanssi
WHERE relevanssi.term = relevanssi.term;`# Query_time: 749.798435 Lock_time: 0.000069 Rows_sent: 500 Rows_examined: 7616740
# Rows_affected: 0 Bytes_sent: 25728
SET timestamp=1669144804;
SELECT DISTINCT(relevanssi.doc), 1 AS term, 1 AS term_reverse,
1 AS content, 1 AS title, 1 AS comment, 1 AS tag, 1 AS link, 1 AS
author, 1 AS category, 1 AS excerpt, 1 AS taxonomy, 1 AS customfield,
1 AS mysqlcolumn, 1 AS taxonomy_detail, 1 AS customfield_detail, 1 AS
mysqlcolumn_detail, type, item, 1 AS tf
FROM wp_relevanssi AS relevanssi
WHERE relevanssi.term = relevanssi.term GROUP BY doc, item, type ORDER BY doc ASC LIMIT 500;`
- The topic ‘MySQL Slow Queries’ is closed to new replies.