D
Dan
Has anyone knwoledge to share about tied hashes as database backend in
cgi-scripts?
I'm running a CGI that will acess a DBM file (DB_File) as a tied hash
like this:
sub pseudo-code{
tie %hash
read(!) something
untied %hash
}
Do I have to use a file lock algorithm wrapped around when I am just
goint to READ from the file?
Will file corruption over time be a problem? (the script will be
running on a heavy load website, multiple processes, maybe sometimes
to read all at once)
As I udnerstand it I'll have to lock the DB_File only for
write/read-write access, but for reading only??
cgi-scripts?
I'm running a CGI that will acess a DBM file (DB_File) as a tied hash
like this:
sub pseudo-code{
tie %hash
read(!) something
untied %hash
}
Do I have to use a file lock algorithm wrapped around when I am just
goint to READ from the file?
Will file corruption over time be a problem? (the script will be
running on a heavy load website, multiple processes, maybe sometimes
to read all at once)
As I udnerstand it I'll have to lock the DB_File only for
write/read-write access, but for reading only??