Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> perl DBI question: fetchrow_array

perl DBI question: fetchrow_array

From: gmei <gmei_at_incyte.com>
Date: Thu, 06 Mar 2003 13:03:50 -0800
Message-ID: <F001.00562774.20030306130350@fatcity.com>


I have some perl code which selects table data and write it into a file. I have something like:



$dbh->{RowCacheSize} = 10000;

open(DATA, ">$tn") || die "Can't open file\n";
$dat=$dbh->prepare("select id||chr(9)||FUNCTIONID||chr(9)||GENEID from
FUNCTION2GENE");
    $dat->execute();
    while(($row) = $dat->fetchrow_array) {

        print DATA "$row\n";
    }
close(DATA);


I am trying to see if there is any way to speed up the process.

So here is my question:

Is "fetchrow_array" the fatest way to get the data?

TIA. Guang

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: gmei
  INET: gmei_at_incyte.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 06 2003 - 15:03:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US