Once again, a fairly off-topic post. Please ignore if this offends.

I working on a redesign of a Web site that was put together rather haphazardly. The old site worked primarily because the person who wrote it knew the database quirks and could code around them (usually). I'm trying to streamline everything, use Template Toolkit, create a nice, OO interface to the database -- and am repeatedly running into my DBA who claims that I'm being too strict regarding normalization.

Example: we have a products tables with 270 products. These products fall into about 10 categories and these categories have been repeated in the products table rather than moved into their own table. This issue is common throughout the database. The DBA claims that the tables are so small that it's not a serious issue and that by not normalizing the database, we can eliminate an extra join and gain some performance.

Huh?

The "performance gain" is lost as my Perl code has "be aware of" these issues (yes, we have several instances of this). If I'm going to update anything, I've need to make sure that I don't "add" a category by misspelling it, for example. Furthermore, one article states:

As with many formal rules and specifications, real world scenarios do not always allow for perfect compliance. In general, normalization requires additional tables and some customers find this cumbersome. If you decide to violate one of the first three rules of normalization, make sure that your application anticipates any problems that could occur, such as redundant data and inconsistent dependencies.

Unfortunately, it doesn't state under what circumstances one might realistically decide not to normalize. Am I following the rules too blindly? In one instance, the DBA stated that the continents can be in the country table because the continents are never going to change. We've argued these issues repeatedly, but I need to step back and get second opinions. This is for a very important client, but it's a fairly small database.

Cheers,
Ovid

Vote for paco!

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to Database Design Issues - OT by Ovid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.