{"id":389,"date":"2011-09-13T23:08:12","date_gmt":"2011-09-13T23:08:12","guid":{"rendered":"http:\/\/www.faultorfeature.com\/?p=389"},"modified":"2011-09-13T23:08:12","modified_gmt":"2011-09-13T23:08:12","slug":"qa-what-are-the-potential-errors-in-the-design-and-construction-of-a-db-and-how-can-the-errors-be-avoided","status":"publish","type":"post","link":"https:\/\/www.faultorfeature.com\/?p=389","title":{"rendered":"Q&amp;A: What are the potential errors in the design and construction of a DB and how can the errors be avoided?"},"content":{"rendered":"<p><strong><i>Question by OhMyGaga<\/i>: What are the potential errors in the design and construction of a DB and how can the errors be avoided?<\/strong><\/p>\n<p><strong>Best answer:<\/strong><\/p>\n<p><i>Answer by Politically Correct<\/i><br \/>Your database needs to be as small as possible to do the job and be normalised to 3F.  Always declare primary to foreign key relations in your tables.<\/p>\n<p>A database with a large number of NULL values will slow down your processing unnecessarily. <\/p>\n<p> An un normalised database will collect errors and degrade.<\/p>\n<p>A database without primary to foreign key integrity will gradually collect orphaned entries.<\/p>\n<p><strong>Add your own answer in the comments!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question by OhMyGaga: What are the potential errors in the design and construction of a DB and how can the errors be avoided? Best answer: Answer by Politically CorrectYour database needs to be as small as possible to do the job and be normalised to 3F. Always declare primary to foreign key relations in your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1163,59,11,395,1162],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-design-flaws","tag-avoided","tag-construction","tag-design","tag-errors","tag-potential"],"_links":{"self":[{"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":0,"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.faultorfeature.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}