in reply to Re^2: Better way to work with large TSV files?
in thread Better way to work with large TSV files?
$sth->prepare( "INSERT INTO Blah ( a, b, c ) VALUES ( ?, ?, ? )" ); tie *TSV, 'File::ReadBackwards', $filename; while( <TSV> ) { my @insert = processRow( $_ ); $sth->execute( @insert ); truncate $filename, tell TSV; } close TSV; unlink $filename unless $errors;
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Better way to work with large TSV files?
by radiantmatrix (Parson) on Aug 24, 2004 at 13:39 UTC |