Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-4303

quiz reports: very large queries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      We have some problems with the logic that generates the sql for the reports.

      The $users array that gets imploded into an IN() is just not efficient with large numbers of users. I don't understand the logic really - why can't you just either get all attempts out of the attempts table and just do a straight JOIN mdl_user u ON u.id = attempt.userid or whatever it is, and then for the show users with no attempts bit, do a LEFT JOIN on null with mdl_user_students + user.

      At the moment we're dying on this page It just times out.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: