in reply to Re^3: Efficient way to handle huge number of records?
in thread Efficient way to handle huge number of records?
I used BrowserUk's sub to generate the data. On the key part is was 40bytes long, but on the data part it was 320bytes, so I 'substr' it to 80 ...$data = substr(rndStr(80,qw[a c g t]),0,80));
Sorry, but you must have typo'd or c&p'd my code incorrectly, because there should be no need to substr the output of rndStr():
sub rndStr{ join'', @_[ map{ rand @_ } 1 .. shift ] };; $x = rndStr( 80, qw[a c g t] );; print length $x, ':', $x;; 80 : actaatcttgcgccgcggcttcatacgagatgaatagtacgaaaacttggatacacctgtatcat +agaagggccgctgcg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Efficient way to handle huge number of records?
by flexvault (Monsignor) on Dec 16, 2011 at 14:46 UTC |