Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^7: latency and round-trips

by techcode (Hermit)
on Dec 18, 2008 at 12:35 UTC ( #731241=note: print w/replies, xml ) Need Help??

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

While I do lack knowledge with Oracle and obviously your system/implementation - I don't get it why don't you just do something like:
sub get_all_data{ return $sth2->fetchall_arrayref(); } $p = Project->new_project($id); $cursor = $p->get_all_data(); $| = 1; # to turn on autoflush (turn off print/output cashing) foreach my $row (@$cursor){ print OUTPUT do{ local $" = qq{\t}; qq{$row->[1]\$\$\$\$\n}; } if defined $row->[1]; }

The part inside do{} is something I see for the first time, so I'm not sure if you are trying to output a TAB separated file? In particular I'm not sure what does "qq{$row->[1]\$\$\$\$\n};" do?

Also speaking in general - mixing OOP ( ...etc) and non-OOP (global $sth2 value) is usually not a good thing. IMHO you should keep consistency - pick one and stick with it.

Have you tried freelancing/outsourcing? Check out Scriptlance - I work there since 2003. For more info about Scriptlance and freelancing in general check out my home node.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://731241]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-05-24 01:09 GMT
Find Nodes?
    Voting Booth?