Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: search a large text file

by erix (Prior)
on Feb 08, 2011 at 17:27 UTC ( [id://887014]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ ls -lh GbAccList.0206.2011
    -rw-rw-r-- 1 aardvark aardvark 4.6G Feb  8 17:21 GbAccList.0206.2011
    ...
      analyze t;" | psql -q
    
    real    5m50.291s
    
  2. or download this
    # 5 'random' searches like: 
    echo "explain analyze
      select * from t
      where i2 = $gi;" | psql
    
  3. or download this
       Index Cond: (i2 = 2017697)   Total runtime: 0.157 ms
       Index Cond: (i2 = 6895719)   Total runtime: 0.109 ms
       Index Cond: (i2 = 3193323)   Total runtime: 0.119 ms
       Index Cond: (i2 = 8319666)   Total runtime: 0.091 ms
       Index Cond: (i2 = 1573171)   Total runtime: 0.119 ms
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found