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

Read moodle_backup.xml only once during restore

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9
    • 2.8
    • Backup
    • MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • Hide

      1. Create a "Large" test course (Site Admin > Development > Make a test course.
      2. Backup the test course. (Be patient, it takes time for the screens to progress)
      3. Restore the test course. (Again screens are slow)
      4. Verify Course restored successfully (correct number of sections, pages still work).

      Restore time should be in a number of minutes, not a number of hours.

      Testing multiple restores in a single process should be completed as well, however I'm not sure how to create that scenario. Ideas?

      Show
      1. Create a "Large" test course (Site Admin > Development > Make a test course. 2. Backup the test course. (Be patient, it takes time for the screens to progress) 3. Restore the test course. (Again screens are slow) 4. Verify Course restored successfully (correct number of sections, pages still work). Restore time should be in a number of minutes, not a number of hours. Testing multiple restores in a single process should be completed as well, however I'm not sure how to create that scenario. Ideas?

      When restoring complicated courses, backup_general_helper::get_backup_information() can be called many times. In the example of a Large example course the following happens

      Calls to get_backup_information 5546
      Time per call 4-5 seconds
      Restore Time 6.3 hours

      Caching get_backup_information can provide a significant performance improvement as much of the calculation of the restore is stored in memory.

            mr-russ Russell Smith
            mr-russ Russell Smith
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Dan Poltawski Dan Poltawski
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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