Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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
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 romping around the Monastery: (5)
As of 2014-08-30 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls