打印

wordpress系统这条select语句执行时间太长了,如何优化呢

wordpress系统这条select语句执行时间太长了,如何优化呢

lnmp1.3的环境,最近看后台mysql运行情况,发现很多类似的sql语句执行70多秒,网站很慢,有解决措施吗?  SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1  AND (  wp_term_relationships.term_taxonomy_id =1681) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 24;

TOP

sql语句优化不了解

TOP