Hello all you fellow monks out there!

I have heard a lot about databases being stores in memory for quick swapping of information. I have heard about the whole thing of decreased access time and handling, and am now very interested in the subject!

My current web site locks a file at the beginning of the script to ensure that only one request is asked of my database file at once. Unfortunately, my database at the moment is a data structure printed to a file via Data::Dumper. The data structure is a hash (%db) that contains all my data.

I cannot say much about the subject, as I have never dealt with Apache modules before, but if my memory serves me correctly (which I highly doubt!), I remember hearing something about the whole memory subject being related to the Apache modules.

I am very interested in knowing whether it is possible to store this hash in memory, where my CGI scripts could access and update it. If anyone either has some knowledge on this subject or any good reference documents, please let me know!

Many, many thanks in advance!


In reply to Databases Stored In memory by mt2k

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.