Performance issues with large number of internal users
Steps to reproduce
Steps to reproduce:
1. Populate Opencast with a large number of internal users (say 5000)
2. Create a new Event
The Create Event dialog is slow to load and editing the Presenters and Contributors fields is unwieldy.
The /admin-ng/event/new/metadata REST endpoint includes the entire set of available users in the JSON response, in the collection for EVENTS.EVENTS.DETAILS.METADATA.PRESENTERS and EVENTS.EVENTS.DETAILS.METADATA.CONTRIBUTORS
Workaround (if any):
I've just found that it is bad enough with 2000 lecturers ~10s to start the add event modal.
According to my browser /admin-ng/event/new/metadata is being called twice
However I think it might be the performance of the filtering widget itself that is the cause of the problem as the REST call takes ~0.15s