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

Moodle 3.11 upgrade runs out of memory on large system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.11.2
    • None
    • MOODLE_311_STABLE

      The function user_profile_social_update_module_availability is called from an upgrade step. This includes this line:

      $modules = $DB->get_records('course_modules');

      If you have a large number of entries in the course_modules table, this is likely to use all your memory because:

      • It loads all the records even though it only needs the ones with availability field set
      • It reads all the records into memory at once (should use get_recordset which loads them in batches of 100,000 or so)
      • It loads all the fields of the records even though it actually only needs the id and availability fields

            Unassigned Unassigned
            quen Sam Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.