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

    • Type: Sub-task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Marina Glancy
              Integrator:
              Damyon Wiese
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/13