Jawsh
Active member
xf_session_activity
is a xf_post
select is also an xf_session_activity
select.
Code:
LEFT JOIN `xf_session_activity` AS `xf_session_activity_Activity_5`
ON ( `xf_session_activity_Activity_5`.`user_id` =
`xf_user_User_1`.`user_id`
AND `xf_session_activity_Activity_5`.`unique_key` = Concat(
`xf_user_User_1`.`user_id`, '') )
Code:
function()
{
if (\XF::options()->showMessageOnlineStatus)
{
return 'User.Activity';
}
return null;
},
This, in my database, is now causing problems. The select lock in certain instances can cause the entire site to freeze. It's a very busy table as every user action triggers an update and every full post query triggers a select. If
xf_session_activity
locks, the entire site is unavailable.
Last edited: