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

bottleneck in the admin system #200

Open
ErikI1 opened this issue Aug 10, 2023 · 0 comments
Open

bottleneck in the admin system #200

ErikI1 opened this issue Aug 10, 2023 · 0 comments
Assignees

Comments

@ErikI1
Copy link

ErikI1 commented Aug 10, 2023

Hi, when user has a lot of sites for administration (>500), the admin system slows down significantly - each click takes more than one second longer. it is due a gradual reading of all options for each relevant site:

SELECT wp_blogs.blog_id FROM wp_blogs WHERE wp_blogs.blog_id IN ( 1,9..... ) AND archived = '0' AND spam = 0 AND deleted = 0;
SELECT * FROM wp_blogs WHERE blog_id IN (9,10,...);
SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes';
SELECT option_name, option_value FROM wp_9_options WHERE autoload = 'yes';
SELECT option_name, option_value FROM wp_10_options WHERE autoload = 'yes';

Probably problem is in bar menu which call this function user_has_networks for each click. with a large number of networks, switching through the bar is not functional anyway, since they cannot all fit there and scrolling is not possible. it would be good to optimize this functionality or introduce the possibility to turn off network switching via the bar or add search for it.

@JJJ JJJ self-assigned this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants