Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Re: Speeding up the DBI

by tantarbobus (Hermit)
on Jul 14, 2003 at 20:04 UTC ( #274139=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Speeding up the DBI
in thread Speeding up the DBI

$dbh->do(q{DECLARE imprecator CURSOR FOR SELECT * FROM tablename}) ; my $number = 10; my $fetch = $dbh->prepare(q{FETCH $number FROM imprecator}); ## ### Fetch first $number * 10 rows. ## while ($fetch->execute()) { Data::Dumper::Dumper($fetch->fetchall_arrayref()); last if $fetch->rows() < $number; }
Note: The code above has not been tested; it is for illustrative purposes only.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274139]
help
Chatterbox?
[choroba]: That still doesn't make it offensive
[LanX]: of course not
[LanX]: it's pretty ironic if you know the character
choroba likes the movie
[choroba]: Lady_Aleena Do you really need to say "WorldBuilder" after having said "WorldBuilding"?
[LanX]: have to watch it again :)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-05-24 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?