Training Lms Slow

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

"schema_name" "query_id" "timestamp_id" "query_digest_id" "query_digest_text

" "query_digest_truncated" "query_sample_text" "query_sample_text_trunc


ated" "query_type" "execution_count" "warning_count" "error_count" "sum_t
imer_wait" "avg_timer_wait" "min_timer_wait" "max_timer_wait" "sum_lock_time"
"sum_rows_affected" "sum_rows_sent" "sum_rows_examined" "sum_select_full_j
oin" "sum_select_scan" "sum_sort_rows" "sum_no_index_used" "sum_no_good_index
_used" "sum_created_tmp_tables" "sum_created_tmp_disk_tables" "first_seen"
"last_seen"
"moodle" "1614" "9/5/2023 23:30:00" "6c895ee552cda59a3d429c1bc88172d2"
"UPDATE `mdl_temp_stats_daily` SET `stat2` = ( SELECT COUNT ( DISTINCTROW
`te` . `userid` ) FROM `mdl_temp_enroled` `te` WHERE `te` . `courseid` =
`mdl_temp_stats_daily` . `courseid` AND EXISTS ( SELECT ? FROM `mdl_temp_log1` `l`
WHERE `l` . `course` = `mdl_temp_stats_daily` . `courseid` AND `l` . `userid` =
`te` . `userid` ) ) WHERE `mdl_temp_stats_daily` . `stattype` = ? AND
`mdl_temp_stats_daily` . `timeend` = ? AND `mdl_temp_stats_daily` . `roleid` = ?
AND `mdl_temp_stats_daily` . `courseid` IN ( SELECT `l` . `course` FROM
`mdl_temp_log2` `l` WHERE `l` . `course` != ? ) " "UPDATE
mdl_temp_stats_daily
SET stat2 = (

SELECT COUNT(DISTINCT te.userid)


FROM mdl_temp_enroled te
WHERE te.courseid = mdl_temp_stats_daily.courseid
AND EXISTS (

SELECT 'x'
FROM mdl_temp_log1 l
WHERE l.course = mdl_temp_stats_daily.courseid
AND l.userid = te.userid
)
)

WHERE mdl_temp_stats_daily.stattype = 'enrolments'


AND mdl_temp_stats_daily.timeend = 1683648000
AND mdl_temp_stats_daily.roleid = 0
AND mdl_temp_stats_daily.courseid IN (

SELECT l.course
FROM mdl_temp_log2 l
WHERE l.course <> 1)" "0" "4" "1" "0" "0"
"3108774.87971878" "3108774.87971878" "3108774.87971878" "31087
74.87971878" "0" "47" "0" "3278405769" "0" "0" "0" "0" "0"
"1" "0" "9/5/2023 23:24:05" "9/5/2023 23:24:05"

You might also like