Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain user admin pages slow to load #6980

Open
RichardTaylor opened this issue Apr 19, 2022 · 6 comments
Open

Certain user admin pages slow to load #6980

RichardTaylor opened this issue Apr 19, 2022 · 6 comments
Labels
easier-admin Make issues easier to resolve f:admin improvement Improves existing functionality (UI tweaks, refactoring, performance, etc) performance x:uk

Comments

@RichardTaylor
Copy link

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

@mdeuk
Copy link
Collaborator

mdeuk commented Apr 19, 2022

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.

@WilliamWDTK
Copy link
Collaborator

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

Perhaps linked to #6267.

@garethrees garethrees added x:uk performance improvement Improves existing functionality (UI tweaks, refactoring, performance, etc) f:admin labels Apr 20, 2022
@garethrees
Copy link
Member

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

@RichardTaylor
Copy link
Author

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 RichardTaylor added the easier-admin Make issues easier to resolve label Oct 4, 2022
@RichardTaylor
Copy link
Author

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
Copy link
Author

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 RichardTaylor changed the title User admin pages slow to load for certain users Certain user admin pages slow to load Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easier-admin Make issues easier to resolve f:admin improvement Improves existing functionality (UI tweaks, refactoring, performance, etc) performance x:uk
Projects
None yet
Development

No branches or pull requests

4 participants