http://qs321.pair.com?node_id=777909


in reply to Re^2: fastest method to use DBI
in thread fastest method to use DBI

I suspect what the OP saw was something about fetchall_arrayref bering the fastest way to fetch all the data, which is true since it doesn't require looping in perl. However, fetchall_arrayref doesn't work with bind_columns. Also, since the OP is only after a single row, there is no advantage to fetchall_arrayref.

Replies are listed 'Best First'.
Re^4: fastest method to use DBI
by zwon (Abbot) on Jul 07, 2009 at 18:54 UTC
    which is true since it doesn't require looping in perl

    Actually DBI implements fetchall_arrayref as loop in perl

      That's just a default implementation. It depends on the driver. The goal is to override it where databases allow something faster.