in reply to Re^5: latency and round-trips
in thread DBI Queries take half an hour
sub get_all_data{ my $max_rows = 5000; while (my $aref = $sth2->fetchall_arrayref(undef, $max_rows)) { $struct = $dbh_ideas->ora_lob_read(@$aref[1],1,65536); push @$raResults, [ $aref[0],$struct ]; }; return $raResults; }
Then later:
$p = Project->new_project($id); $cursor = $p->get_all_data; foreach my $row (@$cursor){ print OUTPUT do{ local $" = qq{\t}; qq{$row->[1]\$\$\$\$\n}; } if defined $row->[1]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: latency and round-trips
by Corion (Patriarch) on Dec 17, 2008 at 15:42 UTC | |
|
Re^7: latency and round-trips
by techcode (Hermit) on Dec 18, 2008 at 12:35 UTC |