Re: [PBML] saving a hash of hashes
- View Source
> What do you guys think is the quickest and most convenient way totie the primary hash to the database file using tie && DB_File then use
> save a hash of hashes to a file or database system?
the Storable package to freeze & thaw the hash contents from the tie'd
very simple & fast enough for everything i've need it for.
if you still have performance overheads here then get you can create
secondary index db files for searching (i.e. so you don't have to thaw
every hash just to search the 'name' field for example.)
> Setting one up isn't a problem, but keeping it persistent gets a bityup - i've certainaly had that problem before.
> trickier. I could design a system that would write it to a text file
> and then load it from the text file, but I'm betting that once a
> significant amount of data is in the database, it will be horribly
> slow and inefficient.