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

performance improvement for get_users_in_context

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 3.7
    • Component/s: Privacy
    • Labels:

      Description

      Reduce the number of joins in get_users_in_context where possible.

      there is no need to join on the context table when the context is either context_block, context_user or context_course because in those cases we already know that $context->instanceid is equal to $blockinstanceid, $userid or $courseid respectively.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rezaie9 Shamim Rezaie
              Reporter:
              rezaie9 Shamim Rezaie
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                20/May/19