Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: storing a huge text file into a hash

by roboticus (Chancellor)
on Dec 07, 2010 at 18:44 UTC ( [id://875857]=note: print w/replies, xml ) Need Help??


in reply to storing a huge text file into a hash

Angharad:

With that much data, I'd suggest putting it in a DBM file (AnyDBM_File or similar) or a database (DBI with DBD::SQLite) would give you a couple of advantages:

  • You wouldn't have to keep all that data in memory
  • You'd only have to load data into the database when it changes
  • You'd still get quick lookup on your data

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: storing a huge text file into a hash

Replies are listed 'Best First'.
Re^2: storing a huge text file into a hash
by Angharad (Pilgrim) on Dec 07, 2010 at 19:17 UTC
    Ok, thanks for the advice. I've decided to store the data in a database and query it as required :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://875857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-19 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found