Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5540

Slow server with WPP

$
0
0

Every several hours my vps consumes all the cpu because of a mysql process. I have gone to access.log and seen this:

SELECCIONE p.ID AS 'id', p.post_title AS 'title', p.post_date AS 'date', p.post_author AS 'uid', SUM (v.pageviews) AS 'pageviews'
FROM TABLE_popularpostssummary v
LEFT JOIN TABLE_posts p
ON v.postid = p.ID
WHERE 1 = 1
AND p.post_type = 'post'
Y v.view_datetime> DATE_SUB ('2020-03-04 09:32:41', INTERVAL 1 MONTH)
AND p.post_password = ”
Y p.post_status = 'publicar'
GRUPO POR v.postid ORDENAR por
páginas vistas DESC
LIMIT 30;

How can I solve that?


Viewing all articles
Browse latest Browse all 5540

Trending Articles