INSERT INTO mdl_logstore_standard_log (eventname,component,action,target,objecttable,objectid,crud,edulevel,contextid,contextlevel,contextinstanceid,userid,courseid,relateduserid,anonymous,other,timecreated,origin,ip,realuserid) VALUES(N'\core\event\user_password_updated',N'core',N'updated',N'user_password',NULL,NULL,N'u','0','50','30','5','2','0','5','0',N'{"forgottenreset":false}','1686804189',N'cli',N'192.168.67.168',NULL)
This is causing a big issue.
Can i know solution for this ?
When I open Edwiser reports and then after some time our Moodle slows down and page doesn’t load.
Upon checking the MSSQL database in activity monitor
These 2 SQL statements are blocking processes
SELECT COUNT(l.userid) AS usercount
FROM mdl_logstore_standard_log l
JOIN mdl_user u ON u.id = l.userid
JOIN #mdl_tmp_au_f_349 ut WITH (NOLOCK) ON u.id = ut.tempid
WHERE l.action = N'viewed'
AND l.courseid = '16'
AND u.deleted = 0
When I run this query I get this result:
Msg 208, Level 16, State 0, Line 1
Invalid object name '#mdl_tmp_au_f_349'.
INSERT INTO mdl_logstore_standard_log (eventname,component,action,target,objecttable,objectid,crud,edulevel,contextid,contextlevel,contextinstanceid,userid,courseid,relateduserid,anonymous,other,timecreated,origin,ip,realuserid) VALUES(N'\core\event\user_password_updated',N'core',N'updated',N'user_password',NULL,NULL,N'u','0','50','30','5','2','0','5','0',N'{"forgottenreset":false}','1686809826',N'cli',N'192.168.67.168',NULL)
When I kill these processes then page loads normal again.