Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: DBD::Sqlite queries slow - and gives wrong results - HEADWHACK

by erix (Prior)
on Dec 13, 2017 at 11:20 UTC ( [id://1205407]=note: print w/replies, xml ) Need Help??


in reply to Re: DBD::Sqlite queries slow - and gives wrong results
in thread DBD::Sqlite queries slow - and gives wrong results

Short-Answer: Do This Now: “Bracket all of your SQLite calls, whether(!) read or write, in transactions.”

He's already using transactions; see the connection parameter 'AutoCommit=>0' or TIAS:

$ perl -MDBI -e 'my$d=DBI->connect("dbi:SQLite:dbname=x.db","","",{Aut +oCommit=>0}); $d->begin_work or die "ah, of course! *HEADWHACK*\n"' DBD::SQLite::db begin_work failed: Already in a transaction at -e line + 1. ah, of course! *HEADWACK*

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 18:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found