{"id":19023812,"date":"2026-09-18T20:15:46","date_gmt":"2026-09-18T20:15:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/performance-query-time\/"},"modified":"2026-09-18T20:15:46","modified_gmt":"2026-09-18T20:15:46","slug":"performance-query-time","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/performance-query-time\/","title":{"rendered":"Performance\/Query time"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Analyzing the Timeline of my website &#8211; TOC+ is one of the slowest plugins to load &#8211; now of course this will only apply to logged in users &#8211; as non logged in get to see a cached page &#8211; but I wonder why the plugin seemingly (I may be wrong and misunderstand something) needs to run database queries on every page load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Overall the queries on my relatively plugin heavy site take about 0.20 seconds &#8211; But TOC+ alone takes around 0.01-0.02 seconds for it&#8217;s query. Yes it&#8217;s not render blocking so no essential slowdown as other queries are started in parallel &#8211; but I feel this is quite long for something not depending on external sources to load. And it&#8217;s the slowest query of all queries on my website by quite some margin. Most queries need only 1\/10 of the time or less.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The offending query is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>UPDATE<\/strong>\u00a0<code>wp_options<\/code><br \/><strong>SET<\/strong>\u00a0<code>option_value<\/code> =\u00a0&#8216;1790366945&#8217;<br \/><strong>WHERE<\/strong>\u00a0<code>option_name<\/code> =\u00a0&#8216;_transient_timeout_aioseo_plugin_cache_table_exists&#8217;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ol>\n<li><code>update_option()<\/code><br \/>wp-includes\/option.php:963<\/li>\n\n\n\n<li><code>set_transient('aioseo_plugin_cache_table_exists')<\/code><br \/>wp-includes\/option.php:1569<\/li>\n\n\n\n<li><code>AIOSEO\\TableOfContents\\Core\\Cache-&gt;checkIfTableExists()<\/code><br \/>wp-content\/plugins\/table-of-contents-plus\/app\/Core\/Cache.php:76<\/li>\n\n\n\n<li><code>do_action('init')<\/code><br \/>wp-settings.php:779<\/li>\n<\/ol>\n","protected":false},"template":"","class_list":["post-19023812","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19023812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19023812\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19023812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}