Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39443 META: OU Moodle 2.4 performance tuning
  3. MDL-39450

Terrible performance in the course format code

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.4.4
    • 2.4.3
    • Course
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • Hide

      1. Run the unit tests.

      2. Do some basic CRUD operations on some courses in a range of formats, to ensure there are not obvious regressions.

      Test 3 (performance):

      1. Create course in topics format (having the default format weeks)
      2. View the course, make sure that performance info on course/view.php is better than before change
      Show
      1. Run the unit tests. 2. Do some basic CRUD operations on some courses in a range of formats, to ensure there are not obvious regressions. Test 3 (performance): Create course in topics format (having the default format weeks) View the course, make sure that performance info on course/view.php is better than before change

      There are hundreds of calls to format_base::instance on a typical course, and that function is very expensive (despite its internal caching).

            timhunt Tim Hunt
            timhunt Tim Hunt
            Marina Glancy Marina Glancy
            Damyon Wiese Damyon Wiese
            Andrew Davis Andrew Davis
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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