bennymack has asked for the wisdom of the Perl Monks concerning the following question:
Dear Esteemed Monks,
I am looking for a way to create a BerkeleyDB cache file more quickly.
For example, I have a ~70MB cache with ~500_000 keys. On a machine with quick disk access it will build in about a minute but on a slow disk it can take quite a while.
I'm building the cache from a a Storable file FYI. I just want to turn the stored data structure into a BDB cache file as quickly as possible.
Is there possibly a way to build the entire cache in memory to avoid intermediate disk writes, then write the whole thing out to disk just once when it's done? Or any other solution would be fine.
Thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Build a BDB cache quicklier
by jettero (Monsignor) on Dec 28, 2006 at 13:42 UTC | |
|
Re: Build a BDB cache quicklier
by SheridanCat (Pilgrim) on Dec 28, 2006 at 13:42 UTC | |
by perrin (Chancellor) on Dec 28, 2006 at 23:24 UTC | |
|
Re: Build a BDB cache quicklier
by bennymack (Pilgrim) on Dec 28, 2006 at 16:06 UTC | |
by Anonymous Monk on Dec 29, 2006 at 06:18 UTC |