I'd like to request some general advice on *local* databases ... So... tips? Conventional wisdom? Pitfalls? What to watch out for? That kind of stuff.

For fun, let's start with my top ten list of general software development practices (adapted from On Coding Standards and Code Reviews):

So I'd start by defining your "local database interface" based on your requirements. You could then try an implementation of it using, for example, the excellent suggestions above from the Discipulus. If your interface is well designed, you could further experiment with different implementations of it, based on your requirements. If performance was crucial, for example, you could benchmark alternative implementations of your local database interface using different technologies - comparing the performance of built-in Perl hashes with a SQLite memory-based database and Judy Arrays, for example.

If performance is critical for your application, you might be interested in:


In reply to Re: Big cache (my top ten software development practices) by eyepopslikeamosquito
in thread Big cache by Liebranca

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.