I use the DBI as a standard part of my web based applications, its damn cool.

Its easy to install, and with it, your web apps become that much more extensible. For example you now have access to any legacy data that you may need to, you can store all kinds of statistics that are accessable from within and out side of perl.

Your sites become much more scalable (using a bunch of webservers behind a load balancer model), you now dont need to have storage on localhost.

All of a sudden your web based data can be incredibly safe, now being maintained by a myriad of standard database backup/restore proceedures...

There are prolly four main choices you'll entertain:

  1. Oracle
  2. Postgres
  3. My SQL
  4. SQL server
Of course there are others (informix, sybase, et al) but the above seem to be the main ones.

Oracle is expensive, but damn, its a great RDBMS. Postgres uses transactions and has support for subselects but isnt as popular as MySQL. MySQL seems to be the most popular among the web, but doesnt support subselects. Both Postgres and MySQL are free and both have DBI drivers (DBD). All are SQL92 compliant (an important factor in deciding which RDDMS you choose IMHO.

Once you've decided you want to use a RDBMS lay our your requirements for what you want it to do, i'm thinking fault tolerance, support, cost, active development, availability, any specific features you're after, future requirements etc etc.

After you've chosen your db engine and implemented it into your web app release, i'm sure you'll wonder how you ever did without one..

There is also (shamless plug) an abstraction to the DBI available.

Update: This was my 300th post!


In reply to Re: To DBI or not to DBI by Ryszard
in thread To DBI or not to DBI by rzward

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.