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

Improving performance when using scandir() during removal of excess backups

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Inactive
    • Icon: Minor Minor
    • None
    • 2.3.2
    • Backup
    • MOODLE_23_STABLE

      Currently we call the remove_excess_backups() method for each individual course. Each of them will call scandir() on the whole directory, we should think of a way to improve this.

      Possible solutions are:

      • Cache the directory content, but we have to be very careful not to use outdated information;
      • Update the method remove_excess_backups() so that it scans the directory only once and handle the excess backup for each courses found at once;

            Unassigned Unassigned
            fred Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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