by Mudasser Jamil.
Recently upgraded from Moodle v2.7 to 3.1.1 and having the same issue. Assignment view/grader taking almost 3 minutes t load for almost 2000 students.
We are running windows 2008, IIS7 and SQLServer 2012.
Turn on the profiling on local computer see attached the result of profile.
Any suggestions?