Another MySQL Slow Query
-
I’m getting another type of slow DB query. These are of the form:
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 AND relevanssi.doc NOT IN (0,46917,46972,46977,4903, <...> ,56876,56889,56901,120435,128347) AND ((relevanssi.doc IN (SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_status IN ('publish'))) OR (doc = -1)) GROUP BY doc, item, type ORDER BY doc ASC LIMIT 500;
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Another MySQL Slow Query’ is closed to new replies.