http://qs321.pair.com?node_id=548167


in reply to Perl's Hash vs BerkeleyDB vs MySQL

Previous replies focused on ACID properties, with this post I observe other kinds of differences:

Advantages of Perl Hash:

Advantages of BerkelyDB (not the same as DB_File):

Comparisons with SQL databases miss the whole point of an embedded database. DB4 is not a multi-process system; it is an embedded database, a a C library intended meant to run in the same address space with the main program (when not using rpc). The general advantages and disadvantages of stand-alone models versus the client-server model should be noted.

Replies are listed 'Best First'.
Re^2: Perl's Hash vs BerkeleyDB vs MySQL
by herveus (Prior) on May 09, 2006 at 11:46 UTC
    Howdy!

    ...of course, you can have both if you use SQLite, as it's an embedded database *with* SQL and all those goodies...

    yours,
    Michael
Re^2: Perl's Hash vs BerkeleyDB vs MySQL
by perrin (Chancellor) on May 09, 2006 at 12:53 UTC
    A lot more than 4K of the BerkeleyDB data might also be in memory, in the shared memory cache.