CivilWarTalk
Active member
Contacted my tech at my host today because my site has been sluggish, loads were a bit high (from 1.0 to 2.0, normal would be 0.2 to 0.6), and there seemed to be unusual lag even though my user count and activity was at normal levels...
The tech sent this message back:
Any thoughts about this?
The tech sent this message back:
I noticed that the queries under the database "cwt" are not optimized and are responsible for the increase in the server load. Please see the sample queries below.
---
| 2708 | cwt | localhost | admin_xenforo | Execute | 5 | Sorting result | SELECT post.*
,
user.*, IF(user.username IS NULL, post.username, user.username) AS username,
user_profile.*,
0 AS like_date
FROM xf_post AS post
LEFT JOIN xf_user AS user ON
(user.user_id = post.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = post.user_id)
WHERE post.thread_id = '71181'
AND (post.position >= 0 AND post.position < 20)
AND (post.message_state IN ('visible'))
ORDER BY post.position ASC, post.post_date ASC |
| 2711 | cwt | localhost | admin_xenforo | Execute | 4 | statistics | SELECT post.*
,
user.*, IF(user.username IS NULL, post.username, user.username) AS username,
user_profile.*,
0 AS like_date
FROM xf_post AS post
LEFT JOIN xf_user AS user ON
(user.user_id = post.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = post.user_id)
WHERE post.thread_id = '23218'
AND (post.position >= 0 AND post.position < 20)
AND (post.message_state IN ('visible'))
ORDER BY post.position ASC, post.post_date ASC |
| 2714 | cwt | localhost | admin_xenforo | Execute | 2 | Sorting result | SELECT post.*
,
user.*, IF(user.username IS NULL, post.username, user.username) AS username,
user_profile.*,
0 AS like_date
FROM xf_post AS post
LEFT JOIN xf_user AS user ON
(user.user_id = post.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = post.user_id)
WHERE post.thread_id = '7178'
AND (post.position >= 0 AND post.position < 20)
AND (post.message_state IN ('visible'))
ORDER BY post.position ASC, post.post_date ASC |
---
I would strongly recommend you to optimize these scripts. Please contact your developer and optimize these scripts immediately.
Any thoughts about this?