Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Using indexing for faster lookup in large file

by Your Mother (Archbishop)
on Mar 05, 2015 at 04:37 UTC ( [id://1118835]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.014;
    use strictures;
    use List::Util "shuffle";
    ...
        say {$db} join ";", $id, shuffle @words[ $start .. $end ];
        last if -s $db > 32_000_000_000;
    }
    
  2. or download this
    use 5.014;
    use strictures;
    use Lucy;
    ...
                   index  => $index,
                   create => 1 );
    }
    
  3. or download this
    use 5.014;
    use strictures;
    use Lucy;
    ...
    
        print "\nQuery: ";
    }
    
  4. or download this
    Searching 126,871,745 records.
    Query (q to quit): ohai
    
    ...
    Query: pollen AND bee
    
    Matched 0 records in 21.61 milliseconds
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found