|laziness, impatience, and hubris|
Databases Stored In memoryby mt2k (Hermit)
|on May 05, 2002 at 22:43 UTC||Need Help??|
mt2k has asked for the wisdom of the Perl Monks concerning the following question:
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!