Unnecessary database queries?
-
Is it necessary to run the following query when accessing “Posts > all posts”?
When there are many links (in my case more than 300,000 thousand), this query slows down the access to the page.
And why is this query executed when accessing Media, Categories, Tags, Plugins, etc?
Is it really necessary?Access to entries, categories, tags or plugins is, in principle, not related to the plugin.
Check carried out with https://es.www.ads-software.com/plugins/query-monitor/
Query SELECT COUNT(*) FROM ( SELECT 0 FROM wp_blc_links AS links JOIN wp_blc_instances AS instances ON links.link_id = instances.link_id WHERE ( instances.parser_type IN ('link', 'image', 'youtube-iframe', 'googlevideo-embed', 'youtube-playlist-embed', 'youtube-embed', 'smart-youtube-embed', 'metadata', 'url_field', 'dailymotion-embed', 'vimeo-embed', 'acf') ) AND ( instances.container_type IN ('post', 'page', 'dummy', 'custom_field', 'comment') ) AND ( ( broken = 1 ) ) AND ( (dismissed = 0) ) GROUP BY links.link_id) AS foo Caller blcLinkQuery->get_links() wp-content/plugins/broken-link-checker/legacy/includes/link-query.php:580 blcLinkQuery->get_filter_links() wp-content/plugins/broken-link-checker/legacy/includes/link-query.php:682 wsBrokenLinkChecker->admin_menu() wp-content/plugins/broken-link-checker/legacy/core/core.php:414 do_action('admin_menu') wp-includes/plugin.php:517
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Unnecessary database queries?’ is closed to new replies.