Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Retrieving a MySQL query in chunks

by stark (Pilgrim)
on Sep 12, 2007 at 08:42 UTC ( [id://638510]=note: print w/replies, xml ) Need Help??


in reply to Retrieving a MySQL query in chunks

Maybe you are looking for the "mysql_use_result" attribute of DBD::mysql.

Set it like this:
my $sth = $dbh->prepare("QUERY", { "mysql_use_result" => 1});

Otherwise the whole result is stored in memory (default "mysql_store_result").

Hope this helps

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found