Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: fastest method to use DBI

by perrin (Chancellor)
on Jul 07, 2009 at 15:34 UTC ( #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.


Comment on Re^3: fastest method to use DBI
Replies are listed 'Best First'.
Re^4: fastest method to use DBI
by zwon (Monsignor) 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
Node Status?
node history
Node Type: note [id://777909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-07-07 21:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls