zzuyanan1 发表于 2017-8-14 09:50:51

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

lnmp1.3的环境,最近看后台mysql运行情况,发现很多类似的sql语句执行70多秒,网站很慢,有解决措施吗?SELECT SQL_CALC_FOUND_ROWSwp_posts.ID FROM wp_postsINNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1AND (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;

licess 发表于 2017-8-14 12:38:09

sql语句优化不了解
页: [1]
查看完整版本: wordpress系统这条select语句执行时间太长了,如何优化呢