Redundant data in `User Management` page.
-
Problem path: /wp-json/cluevo/v1/admin/users/paged/0
For each user in the JSON response (only 50 users), the groups contains the the list of ALL user ids. Fairly sure it’s not even used. I see the groups are loaded in parallel and also contain the list of all user ids.
In my case we have more users (~10k), and the response for the 50 users for the first page takes over 1 minute to load and it’s over 7mb in size. Each list of user ids is 70k, and each user is in 2 groups resulting in 7mb (70k * 50usr * 2grp) of junk.
Since it also takes one minute to load, I’m confident you query for the group names for each user. I only have 3 groups. This operation even with junk data should not take more than 5 seconds.
The only problem I have with that page, is that I have to wait 1 minute to access the permissions tab. I don’t need the users tab loaded.
- You must be logged in to reply to this topic.