{"id":581,"date":"2011-08-27T21:45:41","date_gmt":"2011-08-27T19:45:41","guid":{"rendered":"https:\/\/d-mueller.de\/blog\/?p=581"},"modified":"2011-08-27T21:45:41","modified_gmt":"2011-08-27T19:45:41","slug":"mysql-procedure-analyse-optimale-feldtypen-ermitteln","status":"publish","type":"post","link":"https:\/\/d-mueller.de\/blog\/mysql-procedure-analyse-optimale-feldtypen-ermitteln\/","title":{"rendered":"MySQL PROCEDURE ANALYSE &#8211; Optimale Feldtypen ermitteln"},"content":{"rendered":"<p>Oft w\u00e4hlt man aus Verlegenheit v\u00f6llig \u00fcberdimensionierte Datentypen (<i>VARCHAR(512) und gut&#8230;<\/i>). Ist auch irgendwie verst\u00e4ndlich, schlie\u00dflich ist oft nicht bekannt, in welche Sph\u00e4ren die sp\u00e4teren Feldinhalte vorsto\u00dfen werden. Wenn sich die Datenbank aber mal etwas eingeschwungen hat, kann es lohnenswert sein, etwas zu tweaken. Dazu hilft MySQL mit der <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/procedure-analyse.html\">procedure analyse<\/a>.<\/p>\n<p>Sieht dann so aus:<br \/>\n<div id=\"attachment_582\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/d-mueller.de\/blog\/wp-content\/uploads\/2011\/08\/procedure-analyse.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-582\" src=\"https:\/\/d-mueller.de\/blog\/wp-content\/uploads\/2011\/08\/procedure-analyse-300x143.png\" alt=\"procedure-analyse\" title=\"procedure-analyse\" width=\"300\" height=\"143\" class=\"size-medium wp-image-582\" srcset=\"https:\/\/d-mueller.de\/blog\/wp-content\/uploads\/2011\/08\/procedure-analyse-300x143.png 300w, https:\/\/d-mueller.de\/blog\/wp-content\/uploads\/2011\/08\/procedure-analyse-1024x490.png 1024w, https:\/\/d-mueller.de\/blog\/wp-content\/uploads\/2011\/08\/procedure-analyse.png 1269w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-582\" class=\"wp-caption-text\">procedure-analyse<\/p><\/div>\n<\/p>\n<p>Umsetzen muss man die Vorschl\u00e4ge dann selbst.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oft w\u00e4hlt man aus Verlegenheit v\u00f6llig \u00fcberdimensionierte Datentypen (VARCHAR(512) und gut&#8230;). Ist auch irgendwie verst\u00e4ndlich, schlie\u00dflich ist oft nicht bekannt, in welche Sph\u00e4ren die sp\u00e4teren Feldinhalte vorsto\u00dfen werden. Wenn sich die Datenbank aber mal etwas eingeschwungen hat, kann es lohnenswert &hellip; <a href=\"https:\/\/d-mueller.de\/blog\/mysql-procedure-analyse-optimale-feldtypen-ermitteln\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8,3],"tags":[],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-datenbanken","category-quicktips","category-webdev"],"_links":{"self":[{"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":0,"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"wp:attachment":[{"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d-mueller.de\/blog\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}