-
Bug
-
Resolution: Fixed
-
Major
-
3.1.2
-
MySQL 5.6
-
MySQL
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-55630-master -
I know the issue with the extremely long loading time was fixed with MDL-55284, but there is still a problem remaining with the search bar in the new assignment UI.
I've tested with 90 users. Basically, you click on the black down arrow in the search user-picker (see screenshot). What ensues is a medium/long wait (around 20 seconds) because it tries to compute all the names previously loaded. Furthermore, when typing in the search menu, it seems it has trouble computing the suggested users. Sometimes, it even shows non-related names to my search entry.
Update : After some debugging in our instance, I found out that the function that slowed the process is enrol_get_users_courses, called by user_get_user_details . If I remove the call to this function, the service runs under a second. We have a pretty big Moodle instance with a lot of courses and enrolments (Tables stats: course = 53 815, enrol = 210 165, user_enrolments = 2 191 458).