Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^5: DBD::SQLite bulk insert woes

by Marshall (Abbot)
on Sep 12, 2012 at 07:17 UTC ( #993156=note: print w/replies, xml ) Need Help??

in reply to Re^4: DBD::SQLite bulk insert woes
in thread DBD::SQLite bulk insert woes

I suspect that there are some problems with IMMEDIATE.

I am not a DB guy and I don't know the "best" answer, if there even is one.

I mean if process A reads the DB and then wants to update some record, but process B has read the same record and want's to update it too! Who's update "wins"? Maybe this is a complicated thing where if process A had known about process B's update in advance, it would have made a different decision? In other words, what process A will do is "nonsense" given what process B just did. If this is a single field in a record, maybe a password, I can see it..last guy wins and there is really not a problem. If each update is "atomic" and self consistent, then maybe this IMMEDIATE keyword is not necessary? I defer to the DB guru's here.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-06-20 19:59 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.