{"id":856,"date":"2008-11-04T19:47:19","date_gmt":"2008-11-04T17:47:19","guid":{"rendered":"http:\/\/www.rare-it.com\/blog\/index.php\/2008\/11\/04\/wordpress-optimized"},"modified":"2008-11-04T19:47:19","modified_gmt":"2008-11-04T17:47:19","slug":"wordpress-optimized","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2008\/11\/wordpress-optimized\/","title":{"rendered":"WordPress optimized"},"content":{"rendered":"<p>In under 24 hours, I had a server crash twice. On the console I could see something about MySQL running out of memory, but other than that, I could not do much with the system other than pressing the reset-button. For some reason, the WordPress table &#8220;wp_postmeta&#8221; was about 46 megabytes (about 550,000 records), and trying to do something with that table resulted in timeouts etc. I could see the table contained a lot of records with meta_key = &#8220;_utw_tags_&#8221; and  meta_key = &#8220;_utw_tags_0&#8221;. UTW is Ultimate Tag Warrior, but that&#8217;s a plugin active when I write a post, not when visitors access my blog.<br \/>\nSo I performed the following command:<\/p>\n<pre lang=\"SQL\">\ndelete FROM `wp_postmeta` where `meta_key`= \"_utw_tags_\" or `meta_key`=\"_utw_tags_0\"\n<\/pre>\n<p>That deleted about 540,000 records, and now the weblog is very responsive again, and the server is a lot less busy. That&#8217;s a good thing, right?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In under 24 hours, I had a server crash twice. On the console I could see something about MySQL running out of memory, but other than that, I could not do much with the system other than pressing the reset-button. For some reason, the WordPress table &#8220;wp_postmeta&#8221; was about 46 megabytes (about 550,000 records), and <a href='https:\/\/www.switchbl8.nl\/blog\/2008\/11\/wordpress-optimized\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-856","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=856"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/856\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}