Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.6
-
MOODLE_36_STABLE
-
MOODLE_37_STABLE
-
MDL-63785-master -
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
- has to be done before
-
MDL-64782 performance improvement for get_users_in_context (take #2)
-
- Closed
-