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

Details

    • Sub-task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.4.3
    • 2.4.4
    • 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

    Description

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

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Marina Glancy Marina Glancy
              Damyon Wiese Damyon Wiese
              Andrew Davis Andrew Davis
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/13