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

Plugin generates excessive database queries #525

Open
github-actions bot opened this issue Oct 24, 2023 · 1 comment
Open

Plugin generates excessive database queries #525

github-actions bot opened this issue Oct 24, 2023 · 1 comment

Comments

@github-actions
Copy link

Support

After experiencing performance problems with my site(s), I’ve tracked the problem down to this plugin. When active in a website running the Site Editor, it runs around 500 additional database queries on the search page.

A regular call to the search page without the plugin active runs around 60-70 database queries. When the plugin is active, it varies between 550-600 queries. Using Query Monitor to analyse them, it seems that these additional queries are almost all to WP_Term_Query->get_terms(), which is called (on average) 393 times.

The page I need help with: [log in to see the link]

Details

Note: This support issue is created automatically via GitHub action.

@CiaranGruber
Copy link

CiaranGruber commented Jul 1, 2024

Any updates on this @ZafarKamal123? I've done my own analysis to find that Editor's Kit creates by far the most database queries performing 466 queries and taking about 0.2s total. It's a useful plugin though it adds an extra 30% on total page load time which is a lot for a plugin that is often used for small changes.

It seems that the plugin already supports enabling/disabling features in the settings, why not use this to only perform queries for features that are in use? I'd imagine this could massively improve performance for those that care enough about performance to disable unused features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants