On Wed, Mar 16, 2005 at 01:13:00AM +0100, Steffen Goeldner wrote:
> Currently, a result set has to be completely materialized
> on the client before it can be fetched via DBD::Sponge:

> Large result sets may exhaust available memory. We could
> reduce memory usage at the cost of CPU time:

> In DBD::Sponge, the fetch method needs to deal with the
> code reference:
> 
>   sub fetch {
>     ...
>     my $rows = $sth->{rows};
>     my $row = ref $rows eq 'CODE' ? $rows->() : shift @$rows;
> 
> Of course, DBD::Sponge is no longer absorptive.
> Any opinions?

Yes, yes. Patches welcome etc etc :)

Tim.

Reply via email to