Hardware and performance

Possible inefficient cron job query with mdl_grade_grades_history table