in reply to Re: Speeding up the DBI
in thread Speeding up the DBI
Yes it is. DBD::mysql behaves in the same way that DBD::Pg does when it comes to pulling all of the rows from the database server.
If you want DBD::mysql to act as if it were using cursors, you can specify mysql_use_rows on the statement handle, and then it will not pull over the whole data set on execute.
For DBD::Pg, you can declare a cursor and then execute the fetch in a loop until you have recieved all of the data. Admittedly this coould be done in a cleaner fashion where prepare could take an attribute and if prepare sees that attribute it will declare a cursor and rewrite your statement to use the cursor (which is what Pg::Simple does,IIRC)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Speeding up the DBI
by diotalevi (Canon) on Jul 14, 2003 at 19:39 UTC | |
by tantarbobus (Hermit) on Jul 14, 2003 at 20:04 UTC | |
Re^3: Speeding up the DBI
by Anonymous Monk on Sep 04, 2013 at 18:44 UTC |
In Section
Meditations