alaveteli icon indicating copy to clipboard operation
alaveteli copied to clipboard

Certain user admin pages slow to load

Open RichardTaylor opened this issue 2 years ago • 6 comments

The admin page for my account and the /user/WhatDoTheyKnow account take 10-15 seconds to load.

Both my account and /user/WhatDoTheyKnow have lots of annotations on them.

I've noticed this particularly while using the new feature: "Button for admins to revert to their own account after logging in as a user" #1785

RichardTaylor avatar Apr 19 '22 17:04 RichardTaylor

I've noted this too. I wonder if it might be an idea to paginate the annotations and tracks on user accounts, so as to minimise the load time.

As an example, I loaded user 802's profile in admin view - the profile took 20 seconds to appear. That's very slow.

One potential downside of pagination would be that it could be a nuisance for Information Rights requests - but, given we already have this in place for lists of requests in user admin views, I doubt it's going to be a big issue.

mdeuk avatar Apr 19 '22 17:04 mdeuk

One could have a button linking to an non-paginated version for IR requests.

Perhaps linked to #6267.

WilliamWDTK avatar Apr 19 '22 19:04 WilliamWDTK

While pagination is likely the solution here, there's more we could do on the caching front within the admin interface (#1006).

garethrees avatar Apr 20 '22 09:04 garethrees

I've noticed this particularly while using the new feature: "Button for admins to revert to their own account after logging in as a user"

Workaround: Click the "revert to admin button", and don't wait for my user admin page to load, load another page instead.

RichardTaylor avatar Apr 30 '22 15:04 RichardTaylor

Workaround: Click the "revert to admin button", and don't wait for my user admin page to load, load another page instead.

This only helps with switching back to my admin account, it doesn't help with switching to the /user/whatdotheyknow account

RichardTaylor avatar Oct 04 '22 20:10 RichardTaylor

I've just timed it, there's a ~12 second delay currently opening the /user/whatdotheyknow admin page- it's not major, maybe we're just used to speedy page loads online now!

My own user account's admin page took ~22 seconds to load, but as noted there's a workaround for that when switching between accounts.

RichardTaylor avatar Oct 04 '22 20:10 RichardTaylor