Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: latency and round-trips

by pajout (Curate)
on Dec 20, 2008 at 15:33 UTC ( [id://731774]=note: print w/replies, xml ) Need Help??


in reply to Re^4: latency and round-trips
in thread DBI Queries take half an hour

Unluckily I have no experience with combination of DBI and Oracle, specially with clobs.

But, naturally, I do not know the expected size of your 5000 clobs. If, for instance, 1 clob is maximally 64kB and 350MB of memory is acceptable for your Perl process, let you pull 5000 rows at once... When I implemented data replication between MySQL, Postgres and MSSQL servers, I have chosen 1000 maxrows.

I use the result mostly in this manner:

my $aref = $sth->fetchall_arrayref(); foreach (@$aref) { #now $_ is ref to an array holding one result row for (my $i = 0; $i < @$_; $i++) { print "$i: $_->[$i]\t"; } print "\n"; }
If $aref in your question is the return of fetchall_arrayref, it is reference to an array, which items are references to an array too. So,

$$aref[0] or $aref->[0] is the first item of the "upper" array, i.e. reference to the array containing first data row,

$$aref[$rowindex][$colindex] or $aref->[$rowindex]->[$colindex] is the $colindex'th item of $rowindex'th data row.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-24 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found