We're having some CPU consumption issues with our Moodle server running on Ubuntu. Specifically the mysqld process. After running mysqladmin -i1 processlist it reveals the following queries:
SELECT * FROM mdl_assign_submission WHERE assignment = '#' AND userid = '#' AND groupid = '0'
SELECT * FROM mdl_assign_grades WHERE assignment = '#' AND userid = '#' AND attemptnumber = '0'
Assuming this is a check for assignment submissions, but I'm wondering if this can be tweaked to reduce load on the system during peak hours?
Moodle 3.1.2+ (Build: 20160923)
Thanks in advance!