Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: DBI recipes

by Anonymous Monk
on Jan 24, 2010 at 22:25 UTC ( #819352=note: print w/ replies, xml ) Need Help??


in reply to DBI recipes

I try the sample of "Binding a large hash" because perl is ten times slower than php to get data...and I lost 5 seconds!
- 349s in perl with "Binding a large hash" method
while ($sth->fetchrow_hashref)
- 344s in perl with while ( my $hash_ref = $sth->fetchrow_hashref)
- 32s in php with while ($row = db_fetch_array($statement,OCI_ASSOC))


Comment on Re: DBI recipes
Select or Download Code
Replies are listed 'Best First'.
Re^2: DBI recipes
by mje (Curate) on Jan 25, 2010 at 09:02 UTC
      This seems to be treasure of DBI recipies --Prasad
Re^2: DBI recipes
by Anonymous Monk on Jan 24, 2010 at 22:34 UTC
    Edit: db_fetch_array oci_fetch_array

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-08-01 00:43 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 (285 votes), past polls