Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Build a BDB cache quicklierby bennymack (Pilgrim) |
on Dec 28, 2006 at 13:35 UTC ( [id://592038]=perlquestion: print w/replies, xml ) | Need Help?? |
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!
Back to
Seekers of Perl Wisdom
|
|