-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.2
-
MOODLE_36_STABLE
-
MOODLE_37_STABLE
-
MDL-64886_master -
We have had some issues with the mobile app web service requests for enrol_get_users_courses timing out when the user first logs in.
One of the issues we have identified is the query to count the number if users on each course the user is enrolled on. As an example, we have a course with about 32000 users on (not our largest course), for which this query takes about half a second to complete. Given that the app times out the web service call after 30 seconds, doing this for several courses can take a significant amount of time. The result of this query is not actually used in the app, so we should remove it if possible.
The only issue with this would be if anyone is using this web service for something other than the mobile app, which might then be actually using the enrolled user count. However we're not aware of anything so it seems a bit pointless to have it in there just in case anyone might use it, given the performance cost.
- has been marked as being related by
-
MOBILE-2900 Exclude enrolledusercount from enrol_get_users_courses web service call
-
- Closed
-