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

              Assignee:
              vtos Vitaly Potenko
              Reporter:
              dobedobedoh Andrew Lyons
              Peer reviewer:
              Simey Lameze Simey Lameze
              Integrator:
              Adrian Greeve Adrian Greeve
              Tester:
              CiBoT CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                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