in reply to Perl's Hash vs BerkeleyDB vs MySQL
The big advantages of BerkeleyDB are:
So whenever I want a hash that persists on disk because my RAM isn't big enough to hold all of it, or when I want the data to persist between invocations of the program, I use a tied hash, that maps a Perl hash to a BerkeleyDB.
Another case is when I want multiple instances of a program to (infrequently) write data and the dangers of conflicts are relatively small - then BDB also is convenient.
In other cases, I use a plain Perl hash instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Hash vs BerkeleyDB vs MySQL
by pajout (Curate) on May 09, 2006 at 07:39 UTC | |
by perrin (Chancellor) on May 09, 2006 at 12:51 UTC | |
by pajout (Curate) on May 09, 2006 at 15:03 UTC | |
by perrin (Chancellor) on May 09, 2006 at 16:13 UTC | |
by pajout (Curate) on May 10, 2006 at 07:45 UTC | |
|
Re^2: Perl Hash vs BerkeleyDB vs MySQL
by monkfan (Curate) on May 09, 2006 at 06:47 UTC | |
by Corion (Patriarch) on May 09, 2006 at 06:51 UTC |