I need to wholeheartedly agree with perrin. Rather than go the route of ripping out the basis upon which scalability is established (your RDBMS), why not merely replace it with one that fits your needs better?

At least maintaining your SQL so that you can scale again later is a huge start - jZed's suggestion to use DBD::File or other similar modules that allow you to use plain SQL to access data in otherwise flat files would tide you over allowing you to get back up and running with a minimum of fuss while allowing you to continue investigating a more robust solution (no offense intended, jZed) should the need actually be there.

Popular alternatives are mySQL and PostgreSQL, both in the free realm. But I've also heard that MS SQL, Oracle, and DB2 all have free-for-production-use server products available as well, with all the consummerate feature enhancements and full scalability of being able to upgrade (for a price) to their larger-scale offerings should it be needed (including high availability failovers, clustering, etc.).

Rather than throwing out the baby with the bathwater, I urge you to reconsider. Using flat files as an intermediary makes sense (especially if it's CSV format which is often importable directly into most other RDBMS formats). But using it for production code is somewhat scary. Personally, I think I'm pretty smart. But I definitely have not taken the time to understand everything that a database offers me. I'm just happy to take advantage of it. In fact, in the production of a website built to track test plan progress, my manager not only told me not to do it, but not to use a database in doing it. (I don't quite remember how the latter point came up given the former.) So I started with flat files. But then I started worrying about concurrency and ... well, then I just went ahead and used a database (DB2, actually). And I didn't have any problems with multiple users logging their tests and overwriting each other. Without spending any time on it (other than learning DB2).


In reply to Re: Moving from SQL to flat-files by Tanktalus
in thread Moving from SQL to flat-files by punkish

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.