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

DB Query in loop in enrol/meta/lib.php::edit_instance_validation

    XMLWordPrintable

Details

    Description

      The edit_instance_validation function checks for existing meta enrolment instances.
      It does so in a loop.

      It should ideally fetch all of them in a single query, indexed by the course being meta-linked.

      Attachments

        Issue Links

          Activity

            People

              vtos Vitaly Potenko
              dobedobedoh Andrew Lyons
              Simey Lameze Simey Lameze
              Adrian Greeve Adrian Greeve
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Jan/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours, 25 minutes
                  7h 25m