{"id":1235,"date":"2007-06-09T10:49:20","date_gmt":"2007-06-09T15:49:20","guid":{"rendered":"http:\/\/blogs.discovermagazine.com\/cosmicvariance\/2007\/06\/09\/downtime\/"},"modified":"2007-06-09T10:49:20","modified_gmt":"2007-06-09T15:49:20","slug":"downtime","status":"publish","type":"post","link":"https:\/\/preposterousuniverse.com\/blog\/2007\/06\/09\/downtime\/","title":{"rendered":"Downtime"},"content":{"rendered":"<p>Yeah, we know, you can&#8217;t read the blog.  We are once again the victim of frequent &#8220;This Account Has Exceeded Its CPU Quota&#8221; errors.  Apparently we have a bunch of slow mysql queries, and need to optimize our indices.  Which might be very straightforward, if any of us knew what those words meant.  Dammit, Jim, I&#8217;m a doctor, not a database manager!<\/p>\n<p>Here is the kind of error message we&#8217;re getting:<\/p>\n<blockquote><p># Sat Jun  9 01:23:22 2007<br \/>\n# Query_time: 4  Lock_time: 0  Rows_sent: 27359  Rows_examined: 83792<br \/>\nSELECT<br \/>\n                comment_post_ID, post_title<br \/>\n                FROM (wp_comments LEFT JOIN wp_posts ON (comment_post_ID = ID))<br \/>\n                WHERE comment_approved = &#8216;1&#8217;<br \/>\n                AND comment_type NOT LIKE &#8216;%pingback%&#8217; AND comment_type NOT LIKE &#8216;%trackback%&#8217;<br \/>\n                ORDER BY comment_date DESC<\/p><\/blockquote>\n<p>Full of important information, I&#8217;m sure, but I have no idea what it means or how to fix it.  We might just change web hosts as a way to sidestep the problem, but that sounds like work.  Any other suggestions?<\/p>\n<p><strong>Update:<\/strong>  The particular problem mentioned here has been traced to a particular plugin and fixed.  We&#8217;ve eliminated all of the noticeably slow mysql queries, but the problem persists.  Once in a while an apparently ordinary request (&#8220;GET&#8221; a certain page, for example) takes 30 seconds, for no discernible reason.  We&#8217;ve optimized the database, and even created some new indices, although I&#8217;m not even sure if that helps or hurts things.  Maybe it will fix itself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yeah, we know, you can&#8217;t read the blog. We are once again the victim of frequent &#8220;This Account Has Exceeded Its CPU Quota&#8221; errors. Apparently we have a bunch of slow mysql queries, and need to optimize our indices. Which might be very straightforward, if any of us knew what those words meant. Dammit, Jim, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-1235","post","type-post","status-publish","format-standard","hentry","category-blog"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/posts\/1235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/comments?post=1235"}],"version-history":[{"count":0,"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/posts\/1235\/revisions"}],"wp:attachment":[{"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/media?parent=1235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/categories?post=1235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/preposterousuniverse.com\/blog\/wp-json\/wp\/v2\/tags?post=1235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}