Message266960
Having watched the video of Dave's PyCon talk (thanks Dave), I think he's talking about using locking to control transactions, which presumably the sqlite bindings don't handle by themselves. But I don't *think* you need manual locking just to maintain database integrity. If that's the case, it's probably helpful to clarify it.
I'd probably suggest that if you want to write from multiple threads and control transactions (i.e. more than just individual INSERTs fired from different threads), it's probably easier to use separate connections and let sqlite handle the synchronisation than to synchronise them yourself. |
|
Date |
User |
Action |
Args |
2016-06-02 21:39:21 | takluyver | set | recipients:
+ takluyver, orsenthil, docs@python, berker.peksag, Dave Sawyer |
2016-06-02 21:39:21 | takluyver | set | messageid: <1464903561.59.0.0560939318757.issue27113@psf.upfronthosting.co.za> |
2016-06-02 21:39:21 | takluyver | link | issue27113 messages |
2016-06-02 21:39:21 | takluyver | create | |
|