Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by erix (Parson)
on Dec 13, 2017 at 11:20 UTC ( #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*

  • Comment on Re^2: DBD::Sqlite queries slow - and gives wrong results - HEADWHACK
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2019-11-17 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (85 votes). Check out past polls.

    Notices?