Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: search a large text file

by chrestomanci (Priest)
on Feb 08, 2011 at 13:31 UTC ( [id://886961]=note: print w/replies, xml ) Need Help??


in reply to Re^2: search a large text file
in thread search a large text file

So in short you have a static 5G dataset, that you need to search frequently.

I think your best bet would be use a database to index the data, and let it worry about how to create an optimised index.

I would put the entire file contents into the database, and discard the original file. If each line also contains lots of other stuff that you will not be searching on, then I would still keep it in the database, but I would put it in a different collum without an index so as not to bloat the database to much.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found