Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^6: Looking for pointers or optimizations.

by SerZKO (Beadle)
on Aug 21, 2012 at 19:12 UTC ( #988829=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(my $fh, "<", $ARGV[0]) or die "cannot open input file: $!";
    my @words = <$fh>;
    close $fh or die "cannot close input file: $!"; ##############
    my $words = @words;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988829]
help
Chatterbox?
[choroba]: if you turn off autocommit and run a prepared statement which fails, the transaction is automatically rolled back, at least in DBD::Pg
[erix]: at least, I'll know where to find the documentation :P
[choroba]: but if there's no prepared statement, there's no rollback
[choroba]: the rollback happens when deallocating the prepared statement in error state.
[choroba]: is this something that Pg enforces, or just a consequence of the Perl implementation?
[choroba]: also, does it make any sense? We run different statements generated from input structures, sometimes prepared statements are involved, sometimes not. We want the behaviour to be consistent.
[erix]: I'm not sure. I suppose you could compare behavior via DBD::Pg with behaviour of the naked SQL

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-09-19 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (220 votes). Check out past polls.

    Notices?