Re: Problem with dbm files?

2002-12-11 Thread Josh Chamas
Warren Pollans wrote:


One app uses MLDBM (with DB_File) to store a complex hash.  One doc, 
mod_perl and dbm files, suggests that there might be consistency 
problems (locking related) when using dbm files with mod_perl.  It seems 
that the MLDBM::Sync module is supposed to eliminate this concern.

Could someone that uses MLDBM with DB_File under mod_perl please let me 
know if there are, in fact, problems with this combination.  If so, will 
MLDBM::Sync fix them or do I need to rewite my app to use mysql?


MLDBM::Sync is a drop in replacement for MLDBM for typical use,
and correctly deals with concurrency issues as long as the files
are on the local disk, files on network mounts may not respect
the file locking that MLDBM::Sync uses.

Regards,

Josh

Josh Chamas, Founder   phone:925-552-0128
Chamas Enterprises Inc.http://www.chamas.com
NodeWorks Link Checkinghttp://www.nodeworks.com




Problem with dbm files?

2002-12-09 Thread Warren Pollans
Hello,

I'm in the process of converting my perl CGI scripts to run under 
mod_perl.  I'm working on an ibook (MacOSX 10.1.5 -Apache/1.3.26 
(Darwin) mod_perl/1.26)

So far, so good - the apps using mysql still work under mod_perl  :-).

One app uses MLDBM (with DB_File) to store a complex hash.  One doc, 
mod_perl and dbm files, suggests that there might be consistency 
problems (locking related) when using dbm files with mod_perl.  It 
seems that the MLDBM::Sync module is supposed to eliminate this 
concern.

Could someone that uses MLDBM with DB_File under mod_perl please let 
me know if there are, in fact, problems with this combination.  If 
so, will MLDBM::Sync fix them or do I need to rewite my app to use 
mysql?

Thanks,

Warren