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

Improve move_courses() Performance

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      using Site Administration->Courses->Add edit courses

      1. Create several courses and several categories
      2. Try to move one/several courses from one category to another

      Show
      using Site Administration->Courses->Add edit courses 1. Create several courses and several categories 2. Try to move one/several courses from one category to another
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
      git@github.com:marinaglancy/moodle.git
    • Pull Master Branch:
      wip-MDL-27756-master

      Description

      move_courses() does a lot of things in a wasteful way:

      • Not reusing information
      • Repeating steps

      The attached patch (mdl_move_courses_performance.diff) attempts to minimize the waste.

        Attachments

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            jrchamp Jonathan Champ
            Integrator:
            Sam Hemelryk
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              1/Aug/11