Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: fastest method to use DBI

by perrin (Chancellor)
on Jul 07, 2009 at 15:34 UTC ( [id://777909]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://777909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found