reduce memory usage importing CSV files
This commit is contained in:
parent
1efabeb45e
commit
9299c46fdf
2 changed files with 6 additions and 3 deletions
|
@ -15,9 +15,7 @@ has '+csv_required_columns' => (
|
|||
sub import_csv {
|
||||
my ($self) = @_;
|
||||
|
||||
my $rows = $self->csv_data;
|
||||
|
||||
foreach my $row ( @{$rows} ) {
|
||||
while ( my $row = $self->get_csv_line ) {
|
||||
$self->_row_to_result($row);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue