in reply to Efficiency on Code
If you have under a few thousand fetches, it's unlikely this would gain you much time, but for larger fetches, it's the fastest.my $sth = $dbh->prepare( $sql ); $sth->execute; my ($pointer); my $rv = $sth->bind_columns(\$pointer); while ($sth->fetch) { # do something with $pointer }
|
|---|