Closed ACLay closed 7 months ago
I wonder if this is related to, and if so how much is due to #970
The api getUsers
is fetching the entire set of user's records (approx. more than 11.5k) from postgress database
Although user role is passed but its never been used while querying the database.
The user numbers fetched from postgress is then used in getStfcBasicPeopleByUserNumbers Effectively two database calls with large set of users seems to be a probable cause for slow loading of the beam line manager drop down list.
INSTRUMENT_SCIENTIST
user role is passed from front end. If this is taken into consideration while querying the postgress database, only two records are fetched as of now. This seems a little weird in production. Discussed the situation with @ACLay and @srconway.
We need to clarify from Emma Gozzard
INSTRUMENT_SCIENTIST
role only allowed in that list or should also include USER_OFFICER
?
What is the problem and why is it a problem
The user list for beamline manager selection shown when attempting to create a new experimental area is incredibly unpleasant to use. It's
Steps to reproduce (if it's a bug).